diff --git a/src/constants/AvailableWebsites.js b/src/constants/AvailableWebsites.ts
similarity index 100%
rename from src/constants/AvailableWebsites.js
rename to src/constants/AvailableWebsites.ts
diff --git a/src/constants/NewsSourcesConstants.js b/src/constants/NewsSourcesConstants.ts
similarity index 86%
rename from src/constants/NewsSourcesConstants.js
rename to src/constants/NewsSourcesConstants.ts
index 1758047..d9aba6c 100644
--- a/src/constants/NewsSourcesConstants.js
+++ b/src/constants/NewsSourcesConstants.ts
@@ -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 {
diff --git a/src/constants/ProxiwashConstants.js b/src/constants/ProxiwashConstants.ts
similarity index 89%
rename from src/constants/ProxiwashConstants.js
rename to src/constants/ProxiwashConstants.ts
index 3d69eb7..c7bda36 100644
--- a/src/constants/ProxiwashConstants.js
+++ b/src/constants/ProxiwashConstants.ts
@@ -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',
diff --git a/src/constants/Update.js b/src/constants/Update.tsx
similarity index 83%
rename from src/constants/Update.js
rename to src/constants/Update.tsx
index 950ce17..807b088 100644
--- a/src/constants/Update.js
+++ b/src/constants/Update.tsx
@@ -17,8 +17,6 @@
* along with Campus INSAT. If not, see .
*/
-// @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 => ,
+ title: i18n.t('intro.updateSlide0.title'),
+ text: i18n.t('intro.updateSlide0.text'),
+ view: () => ,
colors: ['#be1522', '#57080e'],
},
{
key: '1',
- title: i18n.t(`intro.updateSlide1.title`),
- text: i18n.t(`intro.updateSlide1.text`),
- view: (): React.Node => ,
+ title: i18n.t('intro.updateSlide1.title'),
+ text: i18n.t('intro.updateSlide1.text'),
+ view: () => ,
colors: ['#9c165b', '#3e042b'],
},
];