From 97461e56fb85fbd3dc7a059efd620ccc8299ce95 Mon Sep 17 00:00:00 2001 From: Julien Lemonnier Date: Fri, 13 Dec 2024 18:06:01 +0100 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20fix=20libelles=20Am=C3=A9nagem?= =?UTF-8?q?ents=20+=20desc=20filtre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controls/Table/AmenagementTableLayout.tsx | 45 +++++++++------- .../src/controls/Table/FiltreDescription.tsx | 52 ++++++++++++------- 2 files changed, 60 insertions(+), 37 deletions(-) diff --git a/frontend/src/controls/Table/AmenagementTableLayout.tsx b/frontend/src/controls/Table/AmenagementTableLayout.tsx index d7fab11..a070307 100644 --- a/frontend/src/controls/Table/AmenagementTableLayout.tsx +++ b/frontend/src/controls/Table/AmenagementTableLayout.tsx @@ -179,30 +179,37 @@ export default function AmenagementTableLayout(props: { modeAffichage: ModeAffic modeAffichage={props.modeAffichage} /> - {getCountLibelle(count, "aménagement")} + + {getCountLibelle( + count, + props.modeAffichage === ModeAffichageAmenagement.ParAmenagement + ? "aménagement" + : "bénéficiaire", + )} +
{JSON.stringify(getFiltreAmenagementDefault(auth.user as Utilisateur)) !== JSON.stringify(filtreAmenagement) && ( - - + + +