-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b11ebf
commit 752cd2f
Showing
6 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
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
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
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,41 @@ | ||
import { Badge } from '@codegouvfr/react-dsfr/Badge'; | ||
import Title1 from '../../titles/Title1'; | ||
import { Card } from '@codegouvfr/react-dsfr/Card'; | ||
import { useRouteLoaderData } from 'react-router-dom'; | ||
import { OidcClients } from '../../types'; | ||
|
||
export const Dashboard = () => { | ||
const oidcClients = useRouteLoaderData('dashboard') as OidcClients; | ||
return ( | ||
<div className="fr-container fr-mb-10v"> | ||
<Title1>Tableau de bord</Title1> | ||
<div className="fr-grid-row fr-grid-row--gutters"> | ||
{oidcClients.map((oidcClient) => ( | ||
<div className="container fr-col-6"> | ||
<Card | ||
background | ||
border | ||
desc={oidcClient.clientDescription} | ||
horizontal | ||
enlargeLink | ||
linkProps={{ | ||
to: `/dashboard/${oidcClient.id}`, | ||
}} | ||
size="small" | ||
start={ | ||
<ul className="fr-badges-group"> | ||
<li> | ||
<Badge>Clés de test</Badge> | ||
<Badge severity="info">DINUM</Badge> | ||
</li> | ||
</ul> | ||
} | ||
title={oidcClient.clientName} | ||
titleAs="h2" | ||
/> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; |
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
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
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