diff --git a/front/src/providers/connectedSpaces/Dashboard.tsx b/front/src/providers/connectedSpaces/Dashboard.tsx index ac3abac..c39798f 100644 --- a/front/src/providers/connectedSpaces/Dashboard.tsx +++ b/front/src/providers/connectedSpaces/Dashboard.tsx @@ -2,14 +2,14 @@ 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'); + const oidcClients = useRouteLoaderData('dashboard') as OidcClients; return (
Tableau de bord
- {/* ERREUR DE TYPAGE A CORRIGER */} {oidcClients.map((oidcClient) => (
{ - const datas: OidcClient = await backendClient.getDashboard(); + const datas: OidcClients = await backendClient.getDashboard(); return datas; }, id: 'dashboard',