|
@@ -6,6 +6,7 @@ import i18n from 'i18n-js';
|
6
|
6
|
import {Card, Avatar, Paragraph, Title} from 'react-native-paper';
|
7
|
7
|
import CollapsibleScrollView from '../../components/Collapsible/CollapsibleScrollView';
|
8
|
8
|
import type {CardTitleIconPropsType} from '../../constants/PaperStyles';
|
|
9
|
+import ProxiwashConstants from '../../constants/ProxiwashConstants';
|
9
|
10
|
|
10
|
11
|
const LOGO = 'https://etud.insa-toulouse.fr/~amicale_app/images/Proxiwash.png';
|
11
|
12
|
|
|
@@ -20,31 +21,6 @@ export type LaundromatType = {
|
20
|
21
|
url: string,
|
21
|
22
|
};
|
22
|
23
|
|
23
|
|
-export const PROXIWASH_DATA = {
|
24
|
|
- washinsa: {
|
25
|
|
- id: 'washinsa',
|
26
|
|
- title: 'screens.proxiwash.washinsa.title',
|
27
|
|
- subtitle: 'screens.proxiwash.washinsa.subtitle',
|
28
|
|
- description: 'screens.proxiwash.washinsa.description',
|
29
|
|
- tarif: 'screens.proxiwash.washinsa.tariff',
|
30
|
|
- paymentMethods: 'screens.proxiwash.washinsa.paymentMethods',
|
31
|
|
- icon: 'school-outline',
|
32
|
|
- url:
|
33
|
|
- 'https://etud.insa-toulouse.fr/~amicale_app/v2/washinsa/washinsa_data.json',
|
34
|
|
- },
|
35
|
|
- tripodeB: {
|
36
|
|
- id: 'tripodeB',
|
37
|
|
- title: 'screens.proxiwash.tripodeB.title',
|
38
|
|
- subtitle: 'screens.proxiwash.tripodeB.subtitle',
|
39
|
|
- description: 'screens.proxiwash.tripodeB.description',
|
40
|
|
- tarif: 'screens.proxiwash.tripodeB.tariff',
|
41
|
|
- paymentMethods: 'screens.proxiwash.tripodeB.paymentMethods',
|
42
|
|
- icon: 'domain',
|
43
|
|
- url:
|
44
|
|
- 'https://etud.insa-toulouse.fr/~amicale_app/v2/washinsa/tripode_b_data.json',
|
45
|
|
- },
|
46
|
|
-};
|
47
|
|
-
|
48
|
24
|
/**
|
49
|
25
|
* Class defining the proxiwash about screen.
|
50
|
26
|
*/
|
|
@@ -88,9 +64,9 @@ export default class ProxiwashAboutScreen extends React.Component<null> {
|
88
|
64
|
/>
|
89
|
65
|
</View>
|
90
|
66
|
|
91
|
|
- {ProxiwashAboutScreen.getCardItem(PROXIWASH_DATA.washinsa)}
|
|
67
|
+ {ProxiwashAboutScreen.getCardItem(ProxiwashConstants.washinsa)}
|
92
|
68
|
|
93
|
|
- {ProxiwashAboutScreen.getCardItem(PROXIWASH_DATA.tripodeB)}
|
|
69
|
+ {ProxiwashAboutScreen.getCardItem(ProxiwashConstants.tripodeB)}
|
94
|
70
|
|
95
|
71
|
<Card style={{margin: 5}}>
|
96
|
72
|
<Card.Title
|