fix: broken resistant page
parent
a2eb85880c
commit
fcf2977eb9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue