|
@@ -11,6 +11,7 @@ const deviceHeight = Dimensions.get("window").height;
|
11
|
11
|
const drawerCover = require("../assets/drawer-cover.png");
|
12
|
12
|
|
13
|
13
|
const WIKETUD_LINK = "https://www.etud.insa-toulouse.fr/wiketud/index.php/Accueil";
|
|
14
|
+const Amicale_LINK = "https://www.etud.insa-toulouse.fr/~amicale";
|
14
|
15
|
|
15
|
16
|
type Props = {
|
16
|
17
|
navigation: Object,
|
|
@@ -68,8 +69,16 @@ export default class SideBar extends React.Component<Props, State> {
|
68
|
69
|
// types: "11"
|
69
|
70
|
},
|
70
|
71
|
{
|
|
72
|
+ name: "Amicale",
|
|
73
|
+ route: "amicale",
|
|
74
|
+ icon: "web",
|
|
75
|
+ bg: "#477EEA",
|
|
76
|
+ // types: "11"
|
|
77
|
+ },
|
|
78
|
+
|
|
79
|
+ {
|
71
|
80
|
name: "Wiketud",
|
72
|
|
- route: "",
|
|
81
|
+ route: "wiketud",
|
73
|
82
|
icon: "web",
|
74
|
83
|
bg: "#477EEA",
|
75
|
84
|
// types: "11"
|
|
@@ -117,13 +126,15 @@ export default class SideBar extends React.Component<Props, State> {
|
117
|
126
|
renderItem={({item}) =>
|
118
|
127
|
<ListItem
|
119
|
128
|
button
|
120
|
|
- noBorder={item.name !== 'Wiketud'} // Display a separator before settings
|
|
129
|
+ noBorder={item.name !== 'Wiketud' && item.name !== 'Proximo'} // Display a separator before settings and Amicale
|
121
|
130
|
selected={this.state.active === item.route}
|
122
|
131
|
onPress={() => {
|
123
|
|
- if (item.name !== 'Wiketud')
|
|
132
|
+ if (item.name !== 'Wiketud' && item.name !== 'Amicale')
|
124
|
133
|
this.navigateToScreen(item.route);
|
125
|
|
- else
|
|
134
|
+ else if (item.name === 'Wiketud')
|
126
|
135
|
Linking.openURL(WIKETUD_LINK).catch((err) => console.error('Error opening link', err));
|
|
136
|
+ else if (item.name === 'Amicale')
|
|
137
|
+ Linking.openURL(Amicale_LINK).catch((err) => console.error('Error opening link', err));
|
127
|
138
|
}}
|
128
|
139
|
>
|
129
|
140
|
<Left>
|