forked from vergnet/application-amicale
Fixed invalid icons
This commit is contained in:
parent
870cbfdadf
commit
ca03b70603
2 changed files with 55 additions and 49 deletions
|
@ -7,6 +7,7 @@ import i18n from 'i18n-js';
|
||||||
import {Collapsible} from "react-navigation-collapsible";
|
import {Collapsible} from "react-navigation-collapsible";
|
||||||
import CustomTabBar from "../../components/Tabbar/CustomTabBar";
|
import CustomTabBar from "../../components/Tabbar/CustomTabBar";
|
||||||
import {withCollapsible} from "../../utils/withCollapsible";
|
import {withCollapsible} from "../../utils/withCollapsible";
|
||||||
|
import type {MaterialCommunityIconsGlyphs} from "react-native-vector-icons/MaterialCommunityIcons";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
collapsibleStack: Collapsible
|
collapsibleStack: Collapsible
|
||||||
|
@ -15,7 +16,7 @@ type Props = {
|
||||||
type DatasetItem = {
|
type DatasetItem = {
|
||||||
name: string,
|
name: string,
|
||||||
email: string,
|
email: string,
|
||||||
icon: string,
|
icon: MaterialCommunityIconsGlyphs,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +25,11 @@ type DatasetItem = {
|
||||||
class AmicaleContactScreen extends React.Component<Props> {
|
class AmicaleContactScreen extends React.Component<Props> {
|
||||||
|
|
||||||
// Dataset containing information about contacts
|
// Dataset containing information about contacts
|
||||||
CONTACT_DATASET = [
|
CONTACT_DATASET: Array<DatasetItem>;
|
||||||
|
|
||||||
|
constructor(props: Props) {
|
||||||
|
super(props);
|
||||||
|
this.CONTACT_DATASET = [
|
||||||
{
|
{
|
||||||
name: i18n.t("screens.amicaleAbout.roles.interSchools"),
|
name: i18n.t("screens.amicaleAbout.roles.interSchools"),
|
||||||
email: "inter.ecoles@amicale-insat.fr",
|
email: "inter.ecoles@amicale-insat.fr",
|
||||||
|
@ -53,7 +58,7 @@ class AmicaleContactScreen extends React.Component<Props> {
|
||||||
{
|
{
|
||||||
name: i18n.t("screens.amicaleAbout.roles.tech"),
|
name: i18n.t("screens.amicaleAbout.roles.tech"),
|
||||||
email: "technique@amicale-insat.fr",
|
email: "technique@amicale-insat.fr",
|
||||||
icon: "settings"
|
icon: "cog"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: i18n.t("screens.amicaleAbout.roles.communication"),
|
name: i18n.t("screens.amicaleAbout.roles.communication"),
|
||||||
|
@ -71,6 +76,7 @@ class AmicaleContactScreen extends React.Component<Props> {
|
||||||
icon: "account-tie"
|
icon: "account-tie"
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
keyExtractor = (item: DatasetItem) => item.email;
|
keyExtractor = (item: DatasetItem) => item.email;
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ export default class ProxiwashAboutScreen extends React.Component<Props> {
|
||||||
<Card style={{margin: 5}}>
|
<Card style={{margin: 5}}>
|
||||||
<Card.Title
|
<Card.Title
|
||||||
title={i18n.t('screens.proxiwash.tariffs')}
|
title={i18n.t('screens.proxiwash.tariffs')}
|
||||||
left={props => <List.Icon {...props} icon={'coins'}/>}
|
left={props => <List.Icon {...props} icon={'circle-multiple'}/>}
|
||||||
/>
|
/>
|
||||||
<Card.Content>
|
<Card.Content>
|
||||||
<Paragraph>{i18n.t('screens.proxiwash.washersTariff')}</Paragraph>
|
<Paragraph>{i18n.t('screens.proxiwash.washersTariff')}</Paragraph>
|
||||||
|
|
Loading…
Reference in a new issue