-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Onglet actions liées sur la page indicateur
- Loading branch information
Showing
2 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...itoiresentransitions.react/src/app/pages/collectivite/Indicateurs/detail/ActionsLiees.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { EmptyCard } from '@/ui'; | ||
import ActionPicto from '../../PlansActions/FicheAction/ActionsLiees/ActionPicto'; | ||
import ActionsLieesListe from '../../PlansActions/FicheAction/ActionsLiees/ActionsLieesListe'; | ||
|
||
type Props = { | ||
actionsIds: string[]; | ||
}; | ||
|
||
const ActionsLiees = ({ actionsIds }: Props) => { | ||
const isEmpty = actionsIds.length === 0; | ||
|
||
return isEmpty ? ( | ||
<EmptyCard | ||
picto={(props) => <ActionPicto {...props} />} | ||
title="Aucune action des référentiels n'est liée !" | ||
size="xs" | ||
/> | ||
) : ( | ||
<div> | ||
<div className="w-full border-b border-primary-3 mb-6"> | ||
<h6 className="text-lg h-[2.125rem] mb-5"> | ||
Actions du référentiel associées | ||
</h6> | ||
</div> | ||
<ActionsLieesListe | ||
actionsIds={actionsIds} | ||
className="sm:grid-cols-2 md:grid-cols-3" | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ActionsLiees; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters