Browse Source

added new update slides

keplyx 2 years ago
parent
commit
12cfdab54d
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.showUpdate1.key, '0');
75
+        AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate2.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.showUpdate1.current === '1'
98
+            showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate2.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

@@ -98,7 +98,7 @@ export default class CustomIntroSlider extends React.Component<Props> {
98 98
                 key: '1',
99 99
                 title: i18n.t('intro.updateSlide.title'),
100 100
                 text: i18n.t('intro.updateSlide.text'),
101
-                icon: 'calendar-range',
101
+                icon: 'silverware-fork-knife',
102 102
                 colors: ['#e01928', '#be1522'],
103 103
             },
104 104
         ]

+ 1
- 1
translations/en.json View File

@@ -36,7 +36,7 @@
36 36
     },
37 37
     "updateSlide": {
38 38
       "title": "New in this update!",
39
-      "text": "Discover every event occurring on the campus in the new Planning screen!"
39
+      "text": "The RU menu is now working!\nAvailable in the left side menu!"
40 40
     }
41 41
   },
42 42
   "settingsScreen": {

+ 1
- 1
translations/fr.json View File

@@ -36,7 +36,7 @@
36 36
     },
37 37
     "updateSlide": {
38 38
       "title": "Nouveau dans cette mise à jour !",
39
-      "text": "Découvre tous les événements du campus dans la nouvelle section Planning !"
39
+      "text": "Le menu du RU marche enfin !\nAccessible depuis le menu à gauche"
40 40
     }
41 41
   },
42 42
   "settingsScreen": {

+ 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
-        showUpdate1: {
33
-            key: 'showUpdate1',
32
+        showUpdate2: {
33
+            key: 'showUpdate2',
34 34
             default: '1',
35 35
             current: '',
36 36
         },

Loading…
Cancel
Save