forked from vergnet/application-amicale
Update constants to use TypeScript
This commit is contained in:
parent
5261e85254
commit
8ac19f36de
4 changed files with 19 additions and 21 deletions
|
@ -19,12 +19,12 @@
|
|||
|
||||
// @flow
|
||||
|
||||
import ICON_AMICALE from '../../assets/amicale.png';
|
||||
import ICON_CAMPUS from '../../assets/android.icon.png';
|
||||
const ICON_AMICALE = require('../../assets/amicale.png');
|
||||
const ICON_CAMPUS = require('../../assets/android.icon.png');
|
||||
|
||||
export type NewsSourceType = {
|
||||
icon: number,
|
||||
name: string,
|
||||
icon: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
export default {
|
|
@ -27,15 +27,15 @@ export default {
|
|||
ERROR: 5,
|
||||
UNKNOWN: 6,
|
||||
},
|
||||
stateIcons: {
|
||||
0: 'radiobox-blank',
|
||||
1: 'progress-check',
|
||||
2: 'alert-circle-outline',
|
||||
3: 'check-circle',
|
||||
4: 'alert-octagram-outline',
|
||||
5: 'alert',
|
||||
6: 'help-circle-outline',
|
||||
},
|
||||
stateIcons: [
|
||||
'radiobox-blank',
|
||||
'progress-check',
|
||||
'alert-circle-outline',
|
||||
'check-circle',
|
||||
'alert-octagram-outline',
|
||||
'alert',
|
||||
'help-circle-outline',
|
||||
],
|
||||
washinsa: {
|
||||
id: 'washinsa',
|
||||
title: 'screens.proxiwash.washinsa.title',
|
|
@ -17,8 +17,6 @@
|
|||
* along with Campus INSAT. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// @flow
|
||||
|
||||
import * as React from 'react';
|
||||
import i18n from 'i18n-js';
|
||||
import type {IntroSlideType} from '../components/Overrides/CustomIntroSlider';
|
||||
|
@ -49,16 +47,16 @@ export default class Update {
|
|||
this.updateSlides = [
|
||||
{
|
||||
key: '0',
|
||||
title: i18n.t(`intro.updateSlide0.title`),
|
||||
text: i18n.t(`intro.updateSlide0.text`),
|
||||
view: (): React.Node => <MascotIntroWelcome />,
|
||||
title: i18n.t('intro.updateSlide0.title'),
|
||||
text: i18n.t('intro.updateSlide0.text'),
|
||||
view: () => <MascotIntroWelcome />,
|
||||
colors: ['#be1522', '#57080e'],
|
||||
},
|
||||
{
|
||||
key: '1',
|
||||
title: i18n.t(`intro.updateSlide1.title`),
|
||||
text: i18n.t(`intro.updateSlide1.text`),
|
||||
view: (): React.Node => <IntroIcon icon="account-heart-outline" />,
|
||||
title: i18n.t('intro.updateSlide1.title'),
|
||||
text: i18n.t('intro.updateSlide1.text'),
|
||||
view: () => <IntroIcon icon="account-heart-outline" />,
|
||||
colors: ['#9c165b', '#3e042b'],
|
||||
},
|
||||
];
|
Loading…
Reference in a new issue