Replace gitea feedback link with Discord

This commit is contained in:
Arnaud Vergnet 2020-08-10 19:32:51 +02:00
parent f168fd8f4d
commit 3c5d718eca

View file

@ -24,8 +24,7 @@ Stp corrige le pb, bien cordialement.`,
facebook: 'https://www.facebook.com/campus.insat', facebook: 'https://www.facebook.com/campus.insat',
feedbackMail: `mailto:app@amicale-insat.fr?subject=[FEEDBACK] Application CAMPUS feedbackMail: `mailto:app@amicale-insat.fr?subject=[FEEDBACK] Application CAMPUS
&body=Coucou Arnaud j'ai du feedback\n\n\n\nBien cordialement.`, &body=Coucou Arnaud j'ai du feedback\n\n\n\nBien cordialement.`,
feedbackGit: feedbackDiscord: 'https://discord.gg/W8MeTec',
'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/issues/new',
}; };
class FeedbackScreen extends React.Component<PropsType> { class FeedbackScreen extends React.Component<PropsType> {
@ -55,17 +54,17 @@ class FeedbackScreen extends React.Component<PropsType> {
MAIL MAIL
</Button> </Button>
<Button <Button
icon="git" icon={isBug ? 'git' : 'discord'}
mode="contained" mode="contained"
color="#609927" color={isBug ? '#609927' : '#7289da'}
style={{ style={{
marginLeft: 'auto', marginLeft: 'auto',
marginTop: 5, marginTop: 5,
}} }}
onPress={() => { onPress={() => {
Linking.openURL(isBug ? links.bugsGit : links.feedbackGit); Linking.openURL(isBug ? links.bugsGit : links.feedbackDiscord);
}}> }}>
GITEA {isBug ? 'GITEA' : 'Discord'}
</Button> </Button>
<Button <Button
icon="facebook" icon="facebook"