added new update slides

This commit is contained in:
keplyx 2019-09-20 09:52:27 +02:00
parent 0a4a3f23f0
commit 12cfdab54d
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, 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.showUpdate1.key, '0'); AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate2.key, '0');
} }
async loadAssetsAsync() { async loadAssetsAsync() {
@ -95,7 +95,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.showUpdate1.current === '1' showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate2.current === '1'
// showIntro: true // showIntro: true
}); });
// Status bar goes dark if set too fast // Status bar goes dark if set too fast

View file

@ -98,7 +98,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: 'calendar-range', icon: 'silverware-fork-knife',
colors: ['#e01928', '#be1522'], colors: ['#e01928', '#be1522'],
}, },
] ]

View file

@ -36,7 +36,7 @@
}, },
"updateSlide": { "updateSlide": {
"title": "New in this update!", "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": { "settingsScreen": {

View file

@ -36,7 +36,7 @@
}, },
"updateSlide": { "updateSlide": {
"title": "Nouveau dans cette mise à jour !", "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": { "settingsScreen": {

View file

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