Browse Source

Added update intro slides

keplyx 4 years ago
parent
commit
7ffa79481e
6 changed files with 8 additions and 10 deletions
  1. 2
    2
      App.js
  2. 1
    1
      components/CustomIntroSlider.js
  3. 1
    3
      screens/HomeScreen.js
  4. 1
    1
      translations/en.json
  5. 1
    1
      translations/fr.json
  6. 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.showUpdate2.key, '0');
75
+        AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate3.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.showUpdate2.current === '1'
98
+            showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate3.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: 'silverware-fork-knife',
108
+                icon: 'view-dashboard',
109 109
                 colors: ['#e01928', '#be1522'],
110 110
             },
111 111
         ]

+ 1
- 3
screens/HomeScreen.js View File

@@ -12,8 +12,6 @@ import PlatformTouchable from "react-native-platform-touchable";
12 12
 import HTML from 'react-native-render-html';
13 13
 import {LinearGradient} from 'expo-linear-gradient';
14 14
 
15
-import DATA from '../data_test'
16
-
17 15
 
18 16
 const ICON_AMICALE = require('../assets/amicale.png');
19 17
 const NAME_AMICALE = 'Amicale INSA Toulouse';
@@ -24,7 +22,7 @@ const SECTIONS_ID = [
24 22
     'news_feed'
25 23
 ];
26 24
 
27
-const REFRESH_TIME = 1000 * 10; // Refresh every 10 seconds
25
+const REFRESH_TIME = 1000 * 20; // Refresh every 20 seconds
28 26
 
29 27
 
30 28
 /**

+ 1
- 1
translations/en.json View File

@@ -40,7 +40,7 @@
40 40
     },
41 41
     "updateSlide": {
42 42
       "title": "New in this update!",
43
-      "text": "The RU menu is new and fresh!\nAvailable in the left side menu!"
43
+      "text": "Say hello to the brand new dashboard!\nGet a quick look at the most important information right from the home screen!"
44 44
     },
45 45
     "buttons": {
46 46
       "next": "Next",

+ 1
- 1
translations/fr.json View File

@@ -40,7 +40,7 @@
40 40
     },
41 41
     "updateSlide": {
42 42
       "title": "Nouveau dans cette mise à jour !",
43
-      "text": "Le menu du RU est tout beau tout neuf !\nAccessible depuis le menu à gauche"
43
+      "text": "Dites bonjour à la toute nouvelle Dashboard !\nAccédez rapidement aux informations les plus importantes depuis l'écran d'accueil !"
44 44
     },
45 45
     "buttons": {
46 46
       "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
-        showUpdate2: {
33
-            key: 'showUpdate2',
32
+        showUpdate3: {
33
+            key: 'showUpdate3',
34 34
             default: '1',
35 35
             current: '',
36 36
         },

Loading…
Cancel
Save