From 12cfdab54d797dfc7db68abb529db753e66ec0b3 Mon Sep 17 00:00:00 2001 From: keplyx Date: Fri, 20 Sep 2019 09:52:27 +0200 Subject: [PATCH] added new update slides --- 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 7b1563a..eb562a4 100644 --- a/App.js +++ b/App.js @@ -72,7 +72,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.showUpdate1.key, '0'); + AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate2.key, '0'); } async loadAssetsAsync() { @@ -95,7 +95,7 @@ export default class App extends React.Component { isLoading: false, currentTheme: ThemeManager.getCurrentTheme(), showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1', - showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate1.current === '1' + showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate2.current === '1' // showIntro: true }); // Status bar goes dark if set too fast diff --git a/components/CustomIntroSlider.js b/components/CustomIntroSlider.js index 47b1c3e..4109a69 100644 --- a/components/CustomIntroSlider.js +++ b/components/CustomIntroSlider.js @@ -98,7 +98,7 @@ export default class CustomIntroSlider extends React.Component { key: '1', title: i18n.t('intro.updateSlide.title'), text: i18n.t('intro.updateSlide.text'), - icon: 'calendar-range', + icon: 'silverware-fork-knife', colors: ['#e01928', '#be1522'], }, ] diff --git a/translations/en.json b/translations/en.json index e7c06da..8fceb33 100644 --- a/translations/en.json +++ b/translations/en.json @@ -36,7 +36,7 @@ }, "updateSlide": { "title": "New in this update!", - "text": "Discover every event occurring on the campus in the new Planning screen!" + "text": "The RU menu is now working!\nAvailable in the left side menu!" } }, "settingsScreen": { diff --git a/translations/fr.json b/translations/fr.json index 5532cf0..2eb20af 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -36,7 +36,7 @@ }, "updateSlide": { "title": "Nouveau dans cette mise à jour !", - "text": "Découvre tous les événements du campus dans la nouvelle section Planning !" + "text": "Le menu du RU marche enfin !\nAccessible depuis le menu à gauche" } }, "settingsScreen": { diff --git a/utils/AsyncStorageManager.js b/utils/AsyncStorageManager.js index 3c7016f..b587b2d 100644 --- a/utils/AsyncStorageManager.js +++ b/utils/AsyncStorageManager.js @@ -29,8 +29,8 @@ export default class AsyncStorageManager { default: '1', current: '', }, - showUpdate1: { - key: 'showUpdate1', + showUpdate2: { + key: 'showUpdate2', default: '1', current: '', },