From 2691931d73e9999f4dad4da95b0662c9b90ec094 Mon Sep 17 00:00:00 2001 From: keplyx Date: Sat, 1 Feb 2020 20:58:13 +0100 Subject: [PATCH] Added update text --- App.js | 4 ++-- components/CustomIntroSlider.js | 2 +- translations/en.json | 2 +- translations/fr.json | 2 +- utils/AsyncStorageManager.js | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/App.js b/App.js index 9644f2d..42fcfe4 100644 --- a/App.js +++ b/App.js @@ -69,7 +69,7 @@ export default class App extends React.Component { showUpdate: false, }); 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() { @@ -93,7 +93,7 @@ export default class App extends React.Component { isLoading: false, currentTheme: ThemeManager.getCurrentTheme(), showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1', - showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate4.current === '1' + showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate5.current === '1' // showIntro: true }); // Status bar goes dark if set too fast diff --git a/components/CustomIntroSlider.js b/components/CustomIntroSlider.js index 96a3c52..6e430e3 100644 --- a/components/CustomIntroSlider.js +++ b/components/CustomIntroSlider.js @@ -105,7 +105,7 @@ export default class CustomIntroSlider extends React.Component { key: '1', title: i18n.t('intro.updateSlide.title'), text: i18n.t('intro.updateSlide.text'), - icon: 'school', + icon: 'email', colors: ['#e01928', '#be1522'], }, ] diff --git a/translations/en.json b/translations/en.json index 4e6f0cf..8010f51 100644 --- a/translations/en.json +++ b/translations/en.json @@ -48,7 +48,7 @@ }, "updateSlide": { "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": { "next": "Next", diff --git a/translations/fr.json b/translations/fr.json index 72ec3c3..5facbb1 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -48,7 +48,7 @@ }, "updateSlide": { "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": { "next": "Suivant", diff --git a/utils/AsyncStorageManager.js b/utils/AsyncStorageManager.js index 6d6e597..8a009dc 100644 --- a/utils/AsyncStorageManager.js +++ b/utils/AsyncStorageManager.js @@ -29,8 +29,8 @@ export default class AsyncStorageManager { default: '1', current: '', }, - showUpdate4: { - key: 'showUpdate4', + showUpdate5: { + key: 'showUpdate5', default: '1', current: '', },