Browse Source

Added update intro text

keplyx 4 years ago
parent
commit
c9425ed6a2
5 changed files with 7 additions and 7 deletions
  1. 2
    2
      App.js
  2. 1
    1
      components/CustomIntroSlider.js
  3. 1
    1
      translations/en.json
  4. 1
    1
      translations/fr.json
  5. 2
    2
      utils/AsyncStorageManager.js

+ 2
- 2
App.js View File

72
             showUpdate: false,
72
             showUpdate: false,
73
         });
73
         });
74
         AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showIntro.key, '0');
74
         AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showIntro.key, '0');
75
-        AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate3.key, '0');
75
+        AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate4.key, '0');
76
     }
76
     }
77
 
77
 
78
     async loadAssetsAsync() {
78
     async loadAssetsAsync() {
95
             isLoading: false,
95
             isLoading: false,
96
             currentTheme: ThemeManager.getCurrentTheme(),
96
             currentTheme: ThemeManager.getCurrentTheme(),
97
             showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
97
             showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
98
-            showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate3.current === '1'
98
+            showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate4.current === '1'
99
             // showIntro: true
99
             // showIntro: true
100
         });
100
         });
101
         // Status bar goes dark if set too fast
101
         // Status bar goes dark if set too fast

+ 1
- 1
components/CustomIntroSlider.js View File

105
                 key: '1',
105
                 key: '1',
106
                 title: i18n.t('intro.updateSlide.title'),
106
                 title: i18n.t('intro.updateSlide.title'),
107
                 text: i18n.t('intro.updateSlide.text'),
107
                 text: i18n.t('intro.updateSlide.text'),
108
-                icon: 'view-dashboard',
108
+                icon: 'school',
109
                 colors: ['#e01928', '#be1522'],
109
                 colors: ['#e01928', '#be1522'],
110
             },
110
             },
111
         ]
111
         ]

+ 1
- 1
translations/en.json View File

41
     },
41
     },
42
     "updateSlide": {
42
     "updateSlide": {
43
       "title": "New in this update!",
43
       "title": "New in this update!",
44
-      "text": "Say hello to the brand new dashboard!\nGet a quick look at the most important information right from the home screen!"
44
+      "text": "Get ready for your exams with Tutor'INSA! Book a Bib'Box or find an empty room to study, available in the side menu."
45
     },
45
     },
46
     "buttons": {
46
     "buttons": {
47
       "next": "Next",
47
       "next": "Next",

+ 1
- 1
translations/fr.json View File

41
     },
41
     },
42
     "updateSlide": {
42
     "updateSlide": {
43
       "title": "Nouveau dans cette mise à jour !",
43
       "title": "Nouveau dans cette mise à jour !",
44
-      "text": "Dites bonjour à la toute nouvelle Dashboard !\nAccédez rapidement aux informations les plus importantes depuis l'écran d'accueil !"
44
+      "text": "Préparez vos exams avec Tutor'INSA! Réservez une Bib'Box ou trouvez une salle libre pour travailler, disponible dans le menu à gauche. "
45
     },
45
     },
46
     "buttons": {
46
     "buttons": {
47
       "next": "Suivant",
47
       "next": "Suivant",

+ 2
- 2
utils/AsyncStorageManager.js View File

29
             default: '1',
29
             default: '1',
30
             current: '',
30
             current: '',
31
         },
31
         },
32
-        showUpdate3: {
33
-            key: 'showUpdate3',
32
+        showUpdate4: {
33
+            key: 'showUpdate4',
34
             default: '1',
34
             default: '1',
35
             current: '',
35
             current: '',
36
         },
36
         },

Loading…
Cancel
Save