From 6daee39dff4cdf341170253130a2343fd0b44ced Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Mon, 30 Jan 2023 01:34:05 +0100 Subject: [PATCH] feat: ajoute lien vers la page de profil --- src/routes/PageResistant.tsx | 4 +++- src/routes/ResistantRow.tsx | 22 ++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/routes/PageResistant.tsx b/src/routes/PageResistant.tsx index f199d2d..b1314c3 100644 --- a/src/routes/PageResistant.tsx +++ b/src/routes/PageResistant.tsx @@ -3,5 +3,7 @@ import {useParams} from "react-router"; export const PageResistant = () => { const { nomResistant } = useParams() - return <>{nomResistant} + return <> + Ici la page dédiée à {nomResistant} + } diff --git a/src/routes/ResistantRow.tsx b/src/routes/ResistantRow.tsx index ac56960..04b43d4 100644 --- a/src/routes/ResistantRow.tsx +++ b/src/routes/ResistantRow.tsx @@ -1,3 +1,4 @@ +import {Link} from "react-router-dom"; import {Resistant} from "../Resistant"; interface Props { @@ -5,25 +6,30 @@ interface Props { } export const ResistantRow = ({resistant}: Props) => { - return (<> + return ( +
-
+
-
+
-
+
+ src={`https://enfance-libre.frama.io/resistants/assets/${resistant.noms}.jpg`} + alt="Jonathan Attias et Caroline Perez"/> {
- + ); }