From 61647ce6ec57a973e9ca904353706721f9cc36ac Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Mon, 21 Sep 2020 17:14:03 +0200 Subject: [PATCH] Fix flow errors and remove unused functions --- src/screens/Proxiwash/ProxiwashAboutScreen.js | 4 +-- src/screens/Proxiwash/ProxiwashScreen.js | 31 ++----------------- 2 files changed, 5 insertions(+), 30 deletions(-) diff --git a/src/screens/Proxiwash/ProxiwashAboutScreen.js b/src/screens/Proxiwash/ProxiwashAboutScreen.js index 3aec251..285c661 100644 --- a/src/screens/Proxiwash/ProxiwashAboutScreen.js +++ b/src/screens/Proxiwash/ProxiwashAboutScreen.js @@ -9,7 +9,7 @@ import type {CardTitleIconPropsType} from '../../constants/PaperStyles'; const LOGO = 'https://etud.insa-toulouse.fr/~amicale_app/images/Proxiwash.png'; -export type LaverieType = { +export type LaundromatType = { id: string, title: string, subtitle: string, @@ -49,7 +49,7 @@ export const PROXIWASH_DATA = { * Class defining the proxiwash about screen. */ export default class ProxiwashAboutScreen extends React.Component { - static getCardItem(item: LaverieType): React.Node { + static getCardItem(item: LaundromatType): React.Node { return ( { return count; } - /** - * Gets a chevron icon - * - * @param props - * @return {*} - */ - static getChevronIcon(props: ListIconPropsType): React.Node { - return ( - - ); - } - - /** - * Gets a custom list item icon - * - * @param item The item to show the icon for - * @param props - * @return {*} - */ - static getItemIcon(item: ListItemType, props: ListIconPropsType): React.Node { - return ( - - ); - } - /** * Creates the dataset to be used by the FlatList * @@ -472,7 +447,7 @@ class ProxiwashScreen extends React.Component { render(): React.Node { const {state} = this; const {navigation} = this.props; - let data: LaverieType; + let data: LaundromatType; switch (state.selectedWash) { case 'tripodeB': data = PROXIWASH_DATA.tripodeB;