From fcf2977eb9acc6e57eb03984d1249336907dab1f Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Fri, 24 Feb 2023 00:31:39 +0100 Subject: [PATCH] fix: broken resistant page --- src/routes/PageResistant.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);