diff --git a/src/routes/PageResistant.tsx b/src/routes/PageResistant.tsx index 503f020..5ae1fc4 100644 --- a/src/routes/PageResistant.tsx +++ b/src/routes/PageResistant.tsx @@ -1,15 +1,18 @@ import {useLoaderData, useParams} from "react-router"; +import {Link} from "react-router-dom"; import {Resistant} from "../Resistant"; export const PageResistant = () => { - const { nomResistant } = useParams() - const { resistants } = useLoaderData() as { resistants: Resistant[] } + const {nomResistant} = useParams() + const {resistants} = useLoaderData() as { resistants: Resistant[] } const resistant = resistants.find(r => r.noms === nomResistant) if (!resistant) return <>Résistant introuvable - return
+ return <> + Retour à la liste des résistants +
@@ -90,4 +93,5 @@ export const PageResistant = () => {
+ }