diff --git a/src/routes/PageResistant.tsx b/src/routes/PageResistant.tsx index 6285ccf..804277b 100644 --- a/src/routes/PageResistant.tsx +++ b/src/routes/PageResistant.tsx @@ -1,10 +1,9 @@ -import { useLoaderData, useNavigate, useParams } from "react-router"; -import { Resistant } from "../Resistant"; +import { useNavigate, useParams } from "react-router"; import { getResistantPhotoUrl } from "../getResistantPhotoUrl"; +import { resistants } from "../resistants"; export const PageResistant = () => { const { nomResistant } = useParams(); - const { resistants } = useLoaderData() as { resistants: Resistant[] }; const navigate = useNavigate(); const resistant = resistants.find((r) => r.noms === nomResistant);