From 496cffe84bf25dd8c58e16490db37be26a419758 Mon Sep 17 00:00:00 2001 From: Elisabeth Fainstein <139369258+elisfainstein@users.noreply.github.com> Date: Thu, 16 Jan 2025 17:55:16 +0100 Subject: [PATCH] feat(ActionsReferentiels): add display by actions --- .../Referentiels/Referentiels.tsx | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/Referentiels/Referentiels.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/Referentiels/Referentiels.tsx index faf6b44382..c1ee77354e 100644 --- a/app.territoiresentransitions.react/src/app/pages/collectivite/Referentiels/Referentiels.tsx +++ b/app.territoiresentransitions.react/src/app/pages/collectivite/Referentiels/Referentiels.tsx @@ -5,6 +5,7 @@ import { Referentiel } from '@/app/types/litterals'; import { ExpandableAction } from '@/app/ui/shared/actions/ExpandableAction'; import { Checkbox, Input, OptionValue, Select } from '@/ui'; import { useState } from 'react'; +import { ReferentielCard } from '../../../../ui/referentiels/Card/ReferentielCard'; import { useExportScore } from './useExportScore'; export const ActionsReferentiels = () => { @@ -30,9 +31,8 @@ export const ActionsReferentiels = () => {
<>
-
+
- {/** Tri */}
{}} onSearch={() => {}} value={''} containerClassname="w-full xl:w-96" - placeholder="Rechercher par nom ou description" + placeholder="Rechercher une action" displaySize="sm" />
@@ -88,6 +88,22 @@ export const ActionsReferentiels = () => {
+ {displayOption === 'actions' && ( +
+
+ {actions + .filter((action) => action.type === 'action') + .map((action) => ( + + ))} +
+
+ )} + {displayOption === 'axes' && axes.map((axe) => (