Browse Source

Replace gitea feedback link with Discord

Arnaud Vergnet 3 years ago
parent
commit
3c5d718eca
1 changed files with 5 additions and 6 deletions
  1. 5
    6
      src/screens/Other/FeedbackScreen.js

+ 5
- 6
src/screens/Other/FeedbackScreen.js View File

24
   facebook: 'https://www.facebook.com/campus.insat',
24
   facebook: 'https://www.facebook.com/campus.insat',
25
   feedbackMail: `mailto:app@amicale-insat.fr?subject=[FEEDBACK] Application CAMPUS
25
   feedbackMail: `mailto:app@amicale-insat.fr?subject=[FEEDBACK] Application CAMPUS
26
 &body=Coucou Arnaud j'ai du feedback\n\n\n\nBien cordialement.`,
26
 &body=Coucou Arnaud j'ai du feedback\n\n\n\nBien cordialement.`,
27
-  feedbackGit:
28
-    'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/issues/new',
27
+  feedbackDiscord: 'https://discord.gg/W8MeTec',
29
 };
28
 };
30
 
29
 
31
 class FeedbackScreen extends React.Component<PropsType> {
30
 class FeedbackScreen extends React.Component<PropsType> {
55
           MAIL
54
           MAIL
56
         </Button>
55
         </Button>
57
         <Button
56
         <Button
58
-          icon="git"
57
+          icon={isBug ? 'git' : 'discord'}
59
           mode="contained"
58
           mode="contained"
60
-          color="#609927"
59
+          color={isBug ? '#609927' : '#7289da'}
61
           style={{
60
           style={{
62
             marginLeft: 'auto',
61
             marginLeft: 'auto',
63
             marginTop: 5,
62
             marginTop: 5,
64
           }}
63
           }}
65
           onPress={() => {
64
           onPress={() => {
66
-            Linking.openURL(isBug ? links.bugsGit : links.feedbackGit);
65
+            Linking.openURL(isBug ? links.bugsGit : links.feedbackDiscord);
67
           }}>
66
           }}>
68
-          GITEA
67
+          {isBug ? 'GITEA' : 'Discord'}
69
         </Button>
68
         </Button>
70
         <Button
69
         <Button
71
           icon="facebook"
70
           icon="facebook"

Loading…
Cancel
Save