From 9e5542359ba8bf385247d4f283593f2b496ff527 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Tue, 7 Jul 2020 18:46:32 +0200 Subject: [PATCH] Use custom icon for amicale website --- src/screens/Services/ServicesScreen.js | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/screens/Services/ServicesScreen.js b/src/screens/Services/ServicesScreen.js index 7440368..ce8f2cd 100644 --- a/src/screens/Services/ServicesScreen.js +++ b/src/screens/Services/ServicesScreen.js @@ -24,7 +24,7 @@ type Props = { export type listItem = { title: string, description: string, - image: string | number, + image: string, shouldLogin: boolean, content: cardList, } @@ -32,7 +32,7 @@ export type listItem = { const CLUBS_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Clubs.png"; const PROFILE_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/ProfilAmicaliste.png"; const VOTE_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Vote.png"; -const AMICALE_IMAGE = require("../../../assets/amicale.png"); +const AMICALE_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/WebsiteAmicale.png"; const PROXIMO_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Proximo.png" const WIKETUD_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Wiketud.png"; @@ -188,29 +188,17 @@ class ServicesScreen extends React.Component { /** * Gets the list title image for the list. * - * If the source is a string, we are using an icon. - * If the source is a number, we are using an internal image. - * * @param props Props to pass to the component - * @param source The source image to display. Can be a string for icons or a number for local images + * @param source The source image to display * @returns {*} */ - getListTitleImage(props, source: string | number) { - if (typeof source === "number") + getListTitleImage(props, source: string) { return - else - return } /**