From 9e416a3e4b33ff785cdb1b2c00307270c7c65803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Arod?= Date: Mon, 9 Dec 2024 20:55:03 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20carte=20-=20rend=20les=20ex-r=C3=A9sist?= =?UTF-8?q?ants=20moins=20visible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - les ex-resistants sont maintenant dessous - la taille est maitenant un peu plus faible --- src/routes/Liste/Map/Picto.tsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/routes/Liste/Map/Picto.tsx b/src/routes/Liste/Map/Picto.tsx index 402f56e..9db5f43 100644 --- a/src/routes/Liste/Map/Picto.tsx +++ b/src/routes/Liste/Map/Picto.tsx @@ -6,12 +6,19 @@ interface Props { resistant: Resistant; } -export const Picto = ({ resistant }: Props) => ( +export const Picto = ({ resistant }: Props) => { + const ancienResistant = isAncienResistant(resistant); + const size = ancienResistant? "33px": "40px"; + return ( {resistant.noms} ); +}