Added update text

This commit is contained in:
keplyx 2020-02-01 20:58:13 +01:00
parent 0a6a4dc863
commit 2691931d73
5 changed files with 7 additions and 7 deletions

4
App.js
View file

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

View file

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

View file

@ -48,7 +48,7 @@
}, },
"updateSlide": { "updateSlide": {
"title": "New in this update!", "title": "New in this update!",
"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." "text": "Never miss an email anymore! Acces your INSA webmail from the app using the left menu. Planex has also seen some improvements!"
}, },
"buttons": { "buttons": {
"next": "Next", "next": "Next",

View file

@ -48,7 +48,7 @@
}, },
"updateSlide": { "updateSlide": {
"title": "Nouveau dans cette mise à jour !", "title": "Nouveau dans cette mise à jour !",
"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. " "text": "Ne ratez plus jamais un email ! Accédez à vos mails insa depuis le menu à gauche. Planex a aussi été un peu amélioré !"
}, },
"buttons": { "buttons": {
"next": "Suivant", "next": "Suivant",

View file

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