Browse Source

Fixed invalid icons

Arnaud Vergnet 3 years ago
parent
commit
ca03b70603

+ 54
- 48
src/screens/Amicale/AmicaleContactScreen.js View File

@@ -7,6 +7,7 @@ import i18n from 'i18n-js';
7 7
 import {Collapsible} from "react-navigation-collapsible";
8 8
 import CustomTabBar from "../../components/Tabbar/CustomTabBar";
9 9
 import {withCollapsible} from "../../utils/withCollapsible";
10
+import type {MaterialCommunityIconsGlyphs} from "react-native-vector-icons/MaterialCommunityIcons";
10 11
 
11 12
 type Props = {
12 13
     collapsibleStack: Collapsible
@@ -15,7 +16,7 @@ type Props = {
15 16
 type DatasetItem = {
16 17
     name: string,
17 18
     email: string,
18
-    icon: string,
19
+    icon: MaterialCommunityIconsGlyphs,
19 20
 }
20 21
 
21 22
 /**
@@ -24,53 +25,58 @@ type DatasetItem = {
24 25
 class AmicaleContactScreen extends React.Component<Props> {
25 26
 
26 27
     // Dataset containing information about contacts
27
-    CONTACT_DATASET = [
28
-        {
29
-            name: i18n.t("screens.amicaleAbout.roles.interSchools"),
30
-            email: "inter.ecoles@amicale-insat.fr",
31
-            icon: "share-variant"
32
-        },
33
-        {
34
-            name: i18n.t("screens.amicaleAbout.roles.culture"),
35
-            email: "culture@amicale-insat.fr",
36
-            icon: "book"
37
-        },
38
-        {
39
-            name: i18n.t("screens.amicaleAbout.roles.animation"),
40
-            email: "animation@amicale-insat.fr",
41
-            icon: "emoticon"
42
-        },
43
-        {
44
-            name: i18n.t("screens.amicaleAbout.roles.clubs"),
45
-            email: "clubs@amicale-insat.fr",
46
-            icon: "account-group"
47
-        },
48
-        {
49
-            name: i18n.t("screens.amicaleAbout.roles.event"),
50
-            email: "evenements@amicale-insat.fr",
51
-            icon: "calendar-range"
52
-        },
53
-        {
54
-            name: i18n.t("screens.amicaleAbout.roles.tech"),
55
-            email: "technique@amicale-insat.fr",
56
-            icon: "settings"
57
-        },
58
-        {
59
-            name: i18n.t("screens.amicaleAbout.roles.communication"),
60
-            email: "amicale@amicale-insat.fr",
61
-            icon: "comment-account"
62
-        },
63
-        {
64
-            name: i18n.t("screens.amicaleAbout.roles.intraSchools"),
65
-            email: "intra.ecoles@amicale-insat.fr",
66
-            icon: "school"
67
-        },
68
-        {
69
-            name: i18n.t("screens.amicaleAbout.roles.publicRelations"),
70
-            email: "rp@amicale-insat.fr",
71
-            icon: "account-tie"
72
-        },
73
-    ];
28
+    CONTACT_DATASET: Array<DatasetItem>;
29
+
30
+    constructor(props: Props) {
31
+        super(props);
32
+        this.CONTACT_DATASET = [
33
+            {
34
+                name: i18n.t("screens.amicaleAbout.roles.interSchools"),
35
+                email: "inter.ecoles@amicale-insat.fr",
36
+                icon: "share-variant"
37
+            },
38
+            {
39
+                name: i18n.t("screens.amicaleAbout.roles.culture"),
40
+                email: "culture@amicale-insat.fr",
41
+                icon: "book"
42
+            },
43
+            {
44
+                name: i18n.t("screens.amicaleAbout.roles.animation"),
45
+                email: "animation@amicale-insat.fr",
46
+                icon: "emoticon"
47
+            },
48
+            {
49
+                name: i18n.t("screens.amicaleAbout.roles.clubs"),
50
+                email: "clubs@amicale-insat.fr",
51
+                icon: "account-group"
52
+            },
53
+            {
54
+                name: i18n.t("screens.amicaleAbout.roles.event"),
55
+                email: "evenements@amicale-insat.fr",
56
+                icon: "calendar-range"
57
+            },
58
+            {
59
+                name: i18n.t("screens.amicaleAbout.roles.tech"),
60
+                email: "technique@amicale-insat.fr",
61
+                icon: "cog"
62
+            },
63
+            {
64
+                name: i18n.t("screens.amicaleAbout.roles.communication"),
65
+                email: "amicale@amicale-insat.fr",
66
+                icon: "comment-account"
67
+            },
68
+            {
69
+                name: i18n.t("screens.amicaleAbout.roles.intraSchools"),
70
+                email: "intra.ecoles@amicale-insat.fr",
71
+                icon: "school"
72
+            },
73
+            {
74
+                name: i18n.t("screens.amicaleAbout.roles.publicRelations"),
75
+                email: "rp@amicale-insat.fr",
76
+                icon: "account-tie"
77
+            },
78
+        ];
79
+    }
74 80
 
75 81
     keyExtractor = (item: DatasetItem) => item.email;
76 82
 

+ 1
- 1
src/screens/Proxiwash/ProxiwashAboutScreen.js View File

@@ -60,7 +60,7 @@ export default class ProxiwashAboutScreen extends React.Component<Props> {
60 60
                 <Card style={{margin: 5}}>
61 61
                     <Card.Title
62 62
                         title={i18n.t('screens.proxiwash.tariffs')}
63
-                        left={props => <List.Icon {...props} icon={'coins'}/>}
63
+                        left={props => <List.Icon {...props} icon={'circle-multiple'}/>}
64 64
                     />
65 65
                     <Card.Content>
66 66
                         <Paragraph>{i18n.t('screens.proxiwash.washersTariff')}</Paragraph>

Loading…
Cancel
Save