Added Yohan to dev list

This commit is contained in:
keplyx 2019-11-16 12:55:47 +01:00
parent 52729bee53
commit 4780b838ab
4 changed files with 61 additions and 12 deletions

View file

@ -28,13 +28,18 @@ const links = {
bugsGit: 'https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/application-amicale/issues',
changelog: 'https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/Changelog.md',
license: 'https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/LICENSE',
mail: "mailto:vergnet@etud.insa-toulouse.fr?" +
authorMail: "mailto:vergnet@etud.insa-toulouse.fr?" +
"subject=" +
"Application Amicale INSA Toulouse" +
"&body=" +
"Coucou !\n\n",
linkedin: 'https://www.linkedin.com/in/arnaud-vergnet-434ba5179/',
facebook: 'https://www.facebook.com/arnaud.vergnet',
authorLinkedin: 'https://www.linkedin.com/in/arnaud-vergnet-434ba5179/',
yohanMail: "mailto:TODO@etud.insa-toulouse.fr?" + // TODO set real email
"subject=" +
"Application Amicale INSA Toulouse" +
"&body=" +
"Coucou !\n\n",
yohanLinkedin: 'https://www.linkedin.com/in/', // TODO set real link
react: 'https://facebook.github.io/react-native/',
};
@ -125,21 +130,39 @@ export default class AboutScreen extends React.Component<Props, State> {
showChevron: false
},
{
onPressCallback: () => openWebLink(links.mail),
onPressCallback: () => openWebLink(links.authorMail),
icon: 'email',
text: i18n.t('aboutScreen.mail'),
text: i18n.t('aboutScreen.authorMail'),
showChevron: true
},
{
onPressCallback: () => openWebLink(links.linkedin),
onPressCallback: () => openWebLink(links.authorLinkedin),
icon: 'linkedin',
text: 'Linkedin',
showChevron: true
},
];
/**
* Data to be displayed in the additional developer card
*/
additionalDevData: Array<Object> = [
{
onPressCallback: () => openWebLink(links.facebook),
icon: 'facebook',
text: 'Facebook',
onPressCallback: () => console.log('Meme this'),
icon: 'account',
text: 'Yohan SIMARD',
showChevron: false
},
{
onPressCallback: () => openWebLink(links.yohanMail),
icon: 'email',
text: i18n.t('aboutScreen.authorMail'),
showChevron: true
},
{
onPressCallback: () => openWebLink(links.yohanLinkedin),
icon: 'linkedin',
text: 'Linkedin',
showChevron: true
},
];
@ -291,6 +314,18 @@ export default class AboutScreen extends React.Component<Props, State> {
</Card>
<Card>
<CardItem>
<Left>
<CustomMaterialIcon
icon={'account-multiple'}
fontSize={40}
width={40}
color={ThemeManager.getCurrentThemeVariables().brandPrimary}/>
<Body>
<H1>{i18n.t('aboutScreen.team')}</H1>
</Body>
</Left>
</CardItem>
<CardItem header>
<Text>{i18n.t('aboutScreen.author')}</Text>
</CardItem>
@ -302,6 +337,17 @@ export default class AboutScreen extends React.Component<Props, State> {
this.getCardItem(item.onPressCallback, item.icon, item.text, item.showChevron, item.showOnlyDebug)
}
/>
<CardItem header>
<Text>{i18n.t('aboutScreen.additionalDev')}</Text>
</CardItem>
<FlatList
data={this.additionalDevData}
extraData={this.state}
keyExtractor={(item) => item.icon}
renderItem={({item}) =>
this.getCardItem(item.onPressCallback, item.icon, item.text, item.showChevron, item.showOnlyDebug)
}
/>
</Card>
<Card>

View file

@ -140,7 +140,6 @@ export default class SettingsScreen extends React.Component<Props, State> {
actions: [NavigationActions.navigate({routeName: 'Main'})],
});
this.props.navigation.dispatch(resetAction);
// this.props.navigation.navigate('SettingsScreen');
}
/**

View file

@ -110,8 +110,10 @@
"changelog": "Changelog",
"license": "License",
"debug": "Debug",
"team": "Team",
"author": "Author",
"mail": "Send an email",
"authorMail": "Send an email",
"additionalDev": "Additional developer",
"technologies": "Technologies",
"reactNative": "Made with React Native",
"libs": "Libraries used"

View file

@ -110,8 +110,10 @@
"changelog": "Historique des modifications",
"license": "Licence",
"debug": "Debug",
"team": "Équipe",
"author": "Auteur",
"mail": "Envoyer un mail",
"authorMail": "Envoyer un mail",
"additionalDev": "Développeur additionnel",
"technologies": "Technologies",
"reactNative": "Créé avec React Native",
"libs": "Librairies utilisées"