|
@@ -64,72 +64,72 @@ function openWebLink(link: string) {
|
64
|
64
|
}
|
65
|
65
|
|
66
|
66
|
/**
|
67
|
|
- * Object containing data relative to major contributors
|
68
|
|
- */
|
69
|
|
-const majorContributors: {[key: string]: MemberItemType} = {
|
70
|
|
- arnaud: {
|
71
|
|
- name: 'Arnaud Vergnet',
|
72
|
|
- message: i18n.t('screens.about.user.arnaud'),
|
73
|
|
- icon: 'crown',
|
74
|
|
- trollLink: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
|
75
|
|
- linkedin: 'https://www.linkedin.com/in/arnaud-vergnet-434ba5179/',
|
76
|
|
- mail:
|
77
|
|
- 'mailto:vergnet@etud.insa-toulouse.fr?' +
|
78
|
|
- 'subject=' +
|
79
|
|
- 'Application Amicale INSA Toulouse' +
|
80
|
|
- '&body=' +
|
81
|
|
- 'Coucou !\n\n',
|
82
|
|
- },
|
83
|
|
- yohan: {
|
84
|
|
- name: 'Yohan Simard',
|
85
|
|
- message: i18n.t('screens.about.user.yohan'),
|
86
|
|
- icon: 'xml',
|
87
|
|
- linkedin: 'https://www.linkedin.com/in/yohan-simard',
|
88
|
|
- mail: 'mailto:ysimard@etud.insa-toulouse.fr?' +
|
89
|
|
- 'subject=' +
|
90
|
|
- 'Application Amicale INSA Toulouse' +
|
91
|
|
- '&body=' +
|
92
|
|
- 'Coucou !\n\n',
|
93
|
|
- },
|
94
|
|
-};
|
95
|
|
-
|
96
|
|
-/**
|
97
|
|
- * Object containing data relative to users who helped during development
|
98
|
|
- */
|
99
|
|
-const helpfulUsers: {[key: string]: MemberItemType} = {
|
100
|
|
- beranger: {
|
101
|
|
- name: 'Béranger Quintana Y Arciosana',
|
102
|
|
- message: i18n.t('screens.about.user.beranger'),
|
103
|
|
- icon: 'account-heart',
|
104
|
|
- },
|
105
|
|
- celine: {
|
106
|
|
- name: 'Céline Tassin',
|
107
|
|
- message: i18n.t('screens.about.user.celine'),
|
108
|
|
- icon: 'brush',
|
109
|
|
- },
|
110
|
|
- damien: {
|
111
|
|
- name: 'Damien Molina',
|
112
|
|
- message: i18n.t('screens.about.user.damien'),
|
113
|
|
- icon: 'web',
|
114
|
|
- },
|
115
|
|
- titouan: {
|
116
|
|
- name: 'Titouan Labourdette',
|
117
|
|
- message: i18n.t('screens.about.user.titouan'),
|
118
|
|
- icon: 'shield-bug',
|
119
|
|
- },
|
120
|
|
- theo: {
|
121
|
|
- name: 'Théo Tami',
|
122
|
|
- message: i18n.t('screens.about.user.theo'),
|
123
|
|
- icon: 'food-apple',
|
124
|
|
- },
|
125
|
|
-};
|
126
|
|
-
|
127
|
|
-/**
|
128
|
67
|
* Class defining an about screen. This screen shows the user information about the app and it's author.
|
129
|
68
|
*/
|
130
|
69
|
class AboutScreen extends React.Component<PropsType, StateType> {
|
131
|
70
|
|
132
|
71
|
/**
|
|
72
|
+ * Object containing data relative to major contributors
|
|
73
|
+ */
|
|
74
|
+ static majorContributors: {[key: string]: MemberItemType} = {
|
|
75
|
+ arnaud: {
|
|
76
|
+ name: 'Arnaud Vergnet',
|
|
77
|
+ message: i18n.t('screens.about.user.arnaud'),
|
|
78
|
+ icon: 'crown',
|
|
79
|
+ trollLink: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
|
|
80
|
+ linkedin: 'https://www.linkedin.com/in/arnaud-vergnet-434ba5179/',
|
|
81
|
+ mail:
|
|
82
|
+ 'mailto:vergnet@etud.insa-toulouse.fr?' +
|
|
83
|
+ 'subject=' +
|
|
84
|
+ 'Application Amicale INSA Toulouse' +
|
|
85
|
+ '&body=' +
|
|
86
|
+ 'Coucou !\n\n',
|
|
87
|
+ },
|
|
88
|
+ yohan: {
|
|
89
|
+ name: 'Yohan Simard',
|
|
90
|
+ message: i18n.t('screens.about.user.yohan'),
|
|
91
|
+ icon: 'xml',
|
|
92
|
+ linkedin: 'https://www.linkedin.com/in/yohan-simard',
|
|
93
|
+ mail: 'mailto:ysimard@etud.insa-toulouse.fr?' +
|
|
94
|
+ 'subject=' +
|
|
95
|
+ 'Application Amicale INSA Toulouse' +
|
|
96
|
+ '&body=' +
|
|
97
|
+ 'Coucou !\n\n',
|
|
98
|
+ },
|
|
99
|
+ };
|
|
100
|
+
|
|
101
|
+ /**
|
|
102
|
+ * Object containing data relative to users who helped during development
|
|
103
|
+ */
|
|
104
|
+ static helpfulUsers: {[key: string]: MemberItemType} = {
|
|
105
|
+ beranger: {
|
|
106
|
+ name: 'Béranger Quintana Y Arciosana',
|
|
107
|
+ message: i18n.t('screens.about.user.beranger'),
|
|
108
|
+ icon: 'account-heart',
|
|
109
|
+ },
|
|
110
|
+ celine: {
|
|
111
|
+ name: 'Céline Tassin',
|
|
112
|
+ message: i18n.t('screens.about.user.celine'),
|
|
113
|
+ icon: 'brush',
|
|
114
|
+ },
|
|
115
|
+ damien: {
|
|
116
|
+ name: 'Damien Molina',
|
|
117
|
+ message: i18n.t('screens.about.user.damien'),
|
|
118
|
+ icon: 'web',
|
|
119
|
+ },
|
|
120
|
+ titouan: {
|
|
121
|
+ name: 'Titouan Labourdette',
|
|
122
|
+ message: i18n.t('screens.about.user.titouan'),
|
|
123
|
+ icon: 'shield-bug',
|
|
124
|
+ },
|
|
125
|
+ theo: {
|
|
126
|
+ name: 'Théo Tami',
|
|
127
|
+ message: i18n.t('screens.about.user.theo'),
|
|
128
|
+ icon: 'food-apple',
|
|
129
|
+ },
|
|
130
|
+ };
|
|
131
|
+
|
|
132
|
+ /**
|
133
|
133
|
* Data to be displayed in the app card
|
134
|
134
|
*/
|
135
|
135
|
appData: Array<ListItemType> = [
|
|
@@ -185,18 +185,18 @@ class AboutScreen extends React.Component<PropsType, StateType> {
|
185
|
185
|
teamData: Array<ListItemType> = [
|
186
|
186
|
{
|
187
|
187
|
onPressCallback: () => {
|
188
|
|
- this.onContributorListItemPress(majorContributors.arnaud);
|
|
188
|
+ this.onContributorListItemPress(AboutScreen.majorContributors.arnaud);
|
189
|
189
|
},
|
190
|
|
- icon: majorContributors.arnaud.icon,
|
191
|
|
- text: majorContributors.arnaud.name,
|
|
190
|
+ icon: AboutScreen.majorContributors.arnaud.icon,
|
|
191
|
+ text: AboutScreen.majorContributors.arnaud.name,
|
192
|
192
|
showChevron: false,
|
193
|
193
|
},
|
194
|
194
|
{
|
195
|
195
|
onPressCallback: () => {
|
196
|
|
- this.onContributorListItemPress(majorContributors.yohan);
|
|
196
|
+ this.onContributorListItemPress(AboutScreen.majorContributors.yohan);
|
197
|
197
|
},
|
198
|
|
- icon: majorContributors.yohan.icon,
|
199
|
|
- text: majorContributors.yohan.name,
|
|
198
|
+ icon: AboutScreen.majorContributors.yohan.icon,
|
|
199
|
+ text: AboutScreen.majorContributors.yohan.name,
|
200
|
200
|
showChevron: false,
|
201
|
201
|
},
|
202
|
202
|
{
|
|
@@ -216,42 +216,42 @@ class AboutScreen extends React.Component<PropsType, StateType> {
|
216
|
216
|
thanksData: Array<ListItemType> = [
|
217
|
217
|
{
|
218
|
218
|
onPressCallback: () => {
|
219
|
|
- this.onContributorListItemPress(helpfulUsers.beranger);
|
|
219
|
+ this.onContributorListItemPress(AboutScreen.helpfulUsers.beranger);
|
220
|
220
|
},
|
221
|
|
- icon: helpfulUsers.beranger.icon,
|
222
|
|
- text: helpfulUsers.beranger.name,
|
|
221
|
+ icon: AboutScreen.helpfulUsers.beranger.icon,
|
|
222
|
+ text: AboutScreen.helpfulUsers.beranger.name,
|
223
|
223
|
showChevron: false,
|
224
|
224
|
},
|
225
|
225
|
{
|
226
|
226
|
onPressCallback: () => {
|
227
|
|
- this.onContributorListItemPress(helpfulUsers.celine);
|
|
227
|
+ this.onContributorListItemPress(AboutScreen.helpfulUsers.celine);
|
228
|
228
|
},
|
229
|
|
- icon: helpfulUsers.celine.icon,
|
230
|
|
- text: helpfulUsers.celine.name,
|
|
229
|
+ icon: AboutScreen.helpfulUsers.celine.icon,
|
|
230
|
+ text: AboutScreen.helpfulUsers.celine.name,
|
231
|
231
|
showChevron: false,
|
232
|
232
|
},
|
233
|
233
|
{
|
234
|
234
|
onPressCallback: () => {
|
235
|
|
- this.onContributorListItemPress(helpfulUsers.damien);
|
|
235
|
+ this.onContributorListItemPress(AboutScreen.helpfulUsers.damien);
|
236
|
236
|
},
|
237
|
|
- icon: helpfulUsers.damien.icon,
|
238
|
|
- text: helpfulUsers.damien.name,
|
|
237
|
+ icon: AboutScreen.helpfulUsers.damien.icon,
|
|
238
|
+ text: AboutScreen.helpfulUsers.damien.name,
|
239
|
239
|
showChevron: false,
|
240
|
240
|
},
|
241
|
241
|
{
|
242
|
242
|
onPressCallback: () => {
|
243
|
|
- this.onContributorListItemPress(helpfulUsers.titouan);
|
|
243
|
+ this.onContributorListItemPress(AboutScreen.helpfulUsers.titouan);
|
244
|
244
|
},
|
245
|
|
- icon: helpfulUsers.titouan.icon,
|
246
|
|
- text: helpfulUsers.titouan.name,
|
|
245
|
+ icon: AboutScreen.helpfulUsers.titouan.icon,
|
|
246
|
+ text: AboutScreen.helpfulUsers.titouan.name,
|
247
|
247
|
showChevron: false,
|
248
|
248
|
},
|
249
|
249
|
{
|
250
|
250
|
onPressCallback: () => {
|
251
|
|
- this.onContributorListItemPress(helpfulUsers.theo);
|
|
251
|
+ this.onContributorListItemPress(AboutScreen.helpfulUsers.theo);
|
252
|
252
|
},
|
253
|
|
- icon: helpfulUsers.theo.icon,
|
254
|
|
- text: helpfulUsers.theo.name,
|
|
253
|
+ icon: AboutScreen.helpfulUsers.theo.icon,
|
|
254
|
+ text: AboutScreen.helpfulUsers.theo.name,
|
255
|
255
|
showChevron: false,
|
256
|
256
|
},
|
257
|
257
|
];
|