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,7 +72,7 @@ export default class App extends React.Component<Props, State> {
72 72
             showUpdate: false,
73 73
         });
74 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 78
     async loadAssetsAsync() {
@@ -95,7 +95,7 @@ export default class App extends React.Component<Props, State> {
95 95
             isLoading: false,
96 96
             currentTheme: ThemeManager.getCurrentTheme(),
97 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 99
             // showIntro: true
100 100
         });
101 101
         // Status bar goes dark if set too fast

+ 1
- 1
components/CustomIntroSlider.js View File

@@ -105,7 +105,7 @@ export default class CustomIntroSlider extends React.Component<Props> {
105 105
                 key: '1',
106 106
                 title: i18n.t('intro.updateSlide.title'),
107 107
                 text: i18n.t('intro.updateSlide.text'),
108
-                icon: 'view-dashboard',
108
+                icon: 'school',
109 109
                 colors: ['#e01928', '#be1522'],
110 110
             },
111 111
         ]

+ 1
- 1
translations/en.json View File

@@ -41,7 +41,7 @@
41 41
     },
42 42
     "updateSlide": {
43 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 46
     "buttons": {
47 47
       "next": "Next",

+ 1
- 1
translations/fr.json View File

@@ -41,7 +41,7 @@
41 41
     },
42 42
     "updateSlide": {
43 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 46
     "buttons": {
47 47
       "next": "Suivant",

+ 2
- 2
utils/AsyncStorageManager.js View File

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

Loading…
Cancel
Save