|
@@ -45,68 +45,68 @@ class ServicesScreen extends React.Component<Props> {
|
45
|
45
|
super(props);
|
46
|
46
|
const nav = props.navigation;
|
47
|
47
|
this.studentsDataset = [
|
48
|
|
- {
|
49
|
|
- title: "proximo",
|
50
|
|
- subtitle: "proximo",
|
51
|
|
- image: PROXIMO_IMAGE,
|
52
|
|
- onPress: () => nav.navigate("proximo"),
|
53
|
|
- },
|
54
|
|
- {
|
55
|
|
- title: "AMICALE",
|
56
|
|
- subtitle: "AMICALE",
|
57
|
|
- image: AMICALE_IMAGE,
|
58
|
|
- onPress: () => nav.navigate("amicale-website"),
|
59
|
|
- },
|
60
|
|
- {
|
61
|
|
- title: "wiketud",
|
62
|
|
- subtitle: "wiketud",
|
63
|
|
- image: WIKETUD_LINK,
|
64
|
|
- onPress: () => nav.navigate("wiketud"),
|
65
|
|
- },
|
66
|
|
- {
|
67
|
|
- title: "ELUS ETUDIANTS",
|
68
|
|
- subtitle: "ELUS ETUDIANTS",
|
69
|
|
- image: EE_IMAGE,
|
70
|
|
- onPress: () => nav.navigate("elus-etudiants"),
|
71
|
|
- },
|
72
|
|
- {
|
73
|
|
- title: "TUTOR INSA",
|
74
|
|
- subtitle: "TUTOR INSA",
|
75
|
|
- image: TUTORINSA_IMAGE,
|
76
|
|
- onPress: () => nav.navigate("tutorinsa"),
|
77
|
|
- },
|
|
48
|
+ {
|
|
49
|
+ title: "proximo",
|
|
50
|
+ subtitle: "proximo",
|
|
51
|
+ image: PROXIMO_IMAGE,
|
|
52
|
+ onPress: () => nav.navigate("proximo"),
|
|
53
|
+ },
|
|
54
|
+ {
|
|
55
|
+ title: "AMICALE",
|
|
56
|
+ subtitle: "AMICALE",
|
|
57
|
+ image: AMICALE_IMAGE,
|
|
58
|
+ onPress: () => nav.navigate("amicale-website"),
|
|
59
|
+ },
|
|
60
|
+ {
|
|
61
|
+ title: "wiketud",
|
|
62
|
+ subtitle: "wiketud",
|
|
63
|
+ image: WIKETUD_LINK,
|
|
64
|
+ onPress: () => nav.navigate("wiketud"),
|
|
65
|
+ },
|
|
66
|
+ {
|
|
67
|
+ title: "ELUS ETUDIANTS",
|
|
68
|
+ subtitle: "ELUS ETUDIANTS",
|
|
69
|
+ image: EE_IMAGE,
|
|
70
|
+ onPress: () => nav.navigate("elus-etudiants"),
|
|
71
|
+ },
|
|
72
|
+ {
|
|
73
|
+ title: "TUTOR INSA",
|
|
74
|
+ subtitle: "TUTOR INSA",
|
|
75
|
+ image: TUTORINSA_IMAGE,
|
|
76
|
+ onPress: () => nav.navigate("tutorinsa"),
|
|
77
|
+ },
|
78
|
78
|
];
|
79
|
79
|
this.insaDataset = [
|
80
|
|
- {
|
81
|
|
- title: "RU",
|
82
|
|
- subtitle: "the ru",
|
83
|
|
- image: RU_IMAGE,
|
84
|
|
- onPress: () => nav.navigate("self-menu"),
|
85
|
|
- },
|
86
|
|
- {
|
87
|
|
- title: "AVAILABLE ROOMS",
|
88
|
|
- subtitle: "ROOMS",
|
89
|
|
- image: ROOM_IMAGE,
|
90
|
|
- onPress: () => nav.navigate("available-rooms"),
|
91
|
|
- },
|
92
|
|
- {
|
93
|
|
- title: "BIB",
|
94
|
|
- subtitle: "BIB",
|
95
|
|
- image: BIB_IMAGE,
|
96
|
|
- onPress: () => nav.navigate("bib"),
|
97
|
|
- },
|
98
|
|
- {
|
99
|
|
- title: "EMAIL",
|
100
|
|
- subtitle: "EMAIL",
|
101
|
|
- image: EMAIL_IMAGE,
|
102
|
|
- onPress: () => nav.navigate("bluemind"),
|
103
|
|
- },
|
104
|
|
- {
|
105
|
|
- title: "ENT",
|
106
|
|
- subtitle: "ENT",
|
107
|
|
- image: ENT_IMAGE,
|
108
|
|
- onPress: () => nav.navigate("ent"),
|
109
|
|
- },
|
|
80
|
+ {
|
|
81
|
+ title: "RU",
|
|
82
|
+ subtitle: "the ru",
|
|
83
|
+ image: RU_IMAGE,
|
|
84
|
+ onPress: () => nav.navigate("self-menu"),
|
|
85
|
+ },
|
|
86
|
+ {
|
|
87
|
+ title: "AVAILABLE ROOMS",
|
|
88
|
+ subtitle: "ROOMS",
|
|
89
|
+ image: ROOM_IMAGE,
|
|
90
|
+ onPress: () => nav.navigate("available-rooms"),
|
|
91
|
+ },
|
|
92
|
+ {
|
|
93
|
+ title: "BIB",
|
|
94
|
+ subtitle: "BIB",
|
|
95
|
+ image: BIB_IMAGE,
|
|
96
|
+ onPress: () => nav.navigate("bib"),
|
|
97
|
+ },
|
|
98
|
+ {
|
|
99
|
+ title: "EMAIL",
|
|
100
|
+ subtitle: "EMAIL",
|
|
101
|
+ image: EMAIL_IMAGE,
|
|
102
|
+ onPress: () => nav.navigate("bluemind"),
|
|
103
|
+ },
|
|
104
|
+ {
|
|
105
|
+ title: "ENT",
|
|
106
|
+ subtitle: "ENT",
|
|
107
|
+ image: ENT_IMAGE,
|
|
108
|
+ onPress: () => nav.navigate("ent"),
|
|
109
|
+ },
|
110
|
110
|
];
|
111
|
111
|
this.finalDataset = [
|
112
|
112
|
{
|
|
@@ -141,15 +141,15 @@ class ServicesScreen extends React.Component<Props> {
|
141
|
141
|
|
142
|
142
|
getAvatar(props, source: string | number) {
|
143
|
143
|
if (typeof source === "number")
|
144
|
|
- return <Avatar.Image
|
145
|
|
- size={48}
|
146
|
|
- source={AMICALE_IMAGE}
|
147
|
|
- style={{backgroundColor: 'transparent'}}/>
|
|
144
|
+ return <Avatar.Image
|
|
145
|
+ size={48}
|
|
146
|
+ source={AMICALE_IMAGE}
|
|
147
|
+ style={{backgroundColor: 'transparent'}}/>
|
148
|
148
|
else
|
149
|
|
- return <List.Icon {...props} icon={source} />
|
|
149
|
+ return <List.Icon {...props} icon={source}/>
|
150
|
150
|
}
|
151
|
151
|
|
152
|
|
- renderItem = ({item} : {item: listItem}) => {
|
|
152
|
+ renderItem = ({item}: { item: listItem }) => {
|
153
|
153
|
return (
|
154
|
154
|
<Card
|
155
|
155
|
style={{
|
|
@@ -161,7 +161,7 @@ class ServicesScreen extends React.Component<Props> {
|
161
|
161
|
title={item.title}
|
162
|
162
|
subtitle={item.description}
|
163
|
163
|
left={(props) => this.getAvatar(props, item.image)}
|
164
|
|
- right={(props) => <List.Icon {...props} icon="chevron-right" />}
|
|
164
|
+ right={(props) => <List.Icon {...props} icon="chevron-right"/>}
|
165
|
165
|
/>
|
166
|
166
|
<CardList
|
167
|
167
|
dataset={item.content}
|