Added update intro text

This commit is contained in:
keplyx 2019-11-08 12:42:30 +01:00
parent e4a002c8dc
commit c9425ed6a2
5 changed files with 7 additions and 7 deletions

4
App.js
View file

@ -72,7 +72,7 @@ export default class App extends React.Component<Props, State> {
showUpdate: false,
});
AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showIntro.key, '0');
AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate3.key, '0');
AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate4.key, '0');
}
async loadAssetsAsync() {
@ -95,7 +95,7 @@ export default class App extends React.Component<Props, State> {
isLoading: false,
currentTheme: ThemeManager.getCurrentTheme(),
showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate3.current === '1'
showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate4.current === '1'
// showIntro: true
});
// Status bar goes dark if set too fast

View file

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

View file

@ -41,7 +41,7 @@
},
"updateSlide": {
"title": "New in this update!",
"text": "Say hello to the brand new dashboard!\nGet a quick look at the most important information right from the home screen!"
"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."
},
"buttons": {
"next": "Next",

View file

@ -41,7 +41,7 @@
},
"updateSlide": {
"title": "Nouveau dans cette mise à jour !",
"text": "Dites bonjour à la toute nouvelle Dashboard !\nAccédez rapidement aux informations les plus importantes depuis l'écran d'accueil !"
"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. "
},
"buttons": {
"next": "Suivant",

View file

@ -29,8 +29,8 @@ export default class AsyncStorageManager {
default: '1',
current: '',
},
showUpdate3: {
key: 'showUpdate3',
showUpdate4: {
key: 'showUpdate4',
default: '1',
current: '',
},