Browse Source

Added ElusEtudiants website link

keplyx 2 years ago
parent
commit
76aeb1599c
3 changed files with 46 additions and 0 deletions
  1. 5
    0
      components/Sidebar.js
  2. 2
    0
      navigation/AppNavigator.js
  3. 39
    0
      screens/ElusEtudScreen.js

+ 5
- 0
components/Sidebar.js View File

@@ -46,6 +46,11 @@ export default class SideBar extends React.Component<Props, State> {
46 46
                 icon: "web",
47 47
             },
48 48
             {
49
+                name: "Élus Étudiants",
50
+                route: "ElusEtudScreen",
51
+                icon: "alpha-e-box",
52
+            },
53
+            {
49 54
                 name: "Wiketud",
50 55
                 route: "WiketudScreen",
51 56
                 icon: "wikipedia",

+ 2
- 0
navigation/AppNavigator.js View File

@@ -12,6 +12,7 @@ import SelfMenuScreen from '../screens/SelfMenuScreen';
12 12
 import TutorInsaScreen from "../screens/TutorInsaScreen";
13 13
 import AmicaleScreen from "../screens/AmicaleScreen";
14 14
 import WiketudScreen from "../screens/WiketudScreen";
15
+import ElusEtudScreen from "../screens/ElusEtudScreen";
15 16
 import AvailableRoomScreen from "../screens/AvailableRoomScreen";
16 17
 import DebugScreen from '../screens/DebugScreen';
17 18
 import {fromRight} from "react-navigation-transitions";
@@ -33,6 +34,7 @@ function createAppContainerWithInitialRoute(initialRoute: string) {
33 34
                 TutorInsaScreen: {screen: TutorInsaScreen},
34 35
                 AmicaleScreen: {screen: AmicaleScreen},
35 36
                 WiketudScreen: {screen: WiketudScreen},
37
+                ElusEtudScreen: {screen: ElusEtudScreen},
36 38
                 AvailableRoomScreen: {screen: AvailableRoomScreen},
37 39
                 ProxiwashAboutScreen: {screen: ProxiwashAboutScreen},
38 40
                 ProximoAboutScreen: {screen: ProximoAboutScreen},

+ 39
- 0
screens/ElusEtudScreen.js View File

@@ -0,0 +1,39 @@
1
+// @flow
2
+
3
+import * as React from 'react';
4
+import ThemeManager from "../utils/ThemeManager";
5
+import WebViewScreen from "../components/WebViewScreen";
6
+
7
+type Props = {
8
+    navigation: Object,
9
+}
10
+
11
+
12
+const URL = 'https://srv-falcon.etud.insa-toulouse.fr/~eeinsat/';
13
+
14
+/**
15
+ * Class defining the app's planex screen.
16
+ * This screen uses a webview to render the planex page
17
+ */
18
+export default class ElusEtudScreen extends React.Component<Props> {
19
+
20
+    render() {
21
+        const nav = this.props.navigation;
22
+        return (
23
+            <WebViewScreen
24
+                navigation={nav}
25
+                data={[
26
+                    {
27
+                        url: URL,
28
+                        icon: '',
29
+                        name: '',
30
+                        customJS: ''
31
+                    },
32
+                ]}
33
+                headerTitle={'Élus Étudiants'}
34
+                hasHeaderBackButton={true}
35
+                hasSideMenu={false}/>
36
+        );
37
+    }
38
+}
39
+

Loading…
Cancel
Save