From 0294af28d46c2278e454c0dcd15a0d0b23448d70 Mon Sep 17 00:00:00 2001 From: Markus Johansen Date: Fri, 28 Jul 2023 16:31:36 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feilkort=20som=20ikke=20er=20expans?= =?UTF-8?q?ioncards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/CardsContainer.tsx | 12 +++++- frontend/src/components/FeilCard.tsx | 50 ++++++++++++++-------- 2 files changed, 43 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/CardsContainer.tsx b/frontend/src/components/CardsContainer.tsx index 79f45fb..cf18d14 100644 --- a/frontend/src/components/CardsContainer.tsx +++ b/frontend/src/components/CardsContainer.tsx @@ -1,4 +1,4 @@ -import FeilCard from "./FeilCard"; +import { FeilCard } from "./FeilCard"; import { Feilmelding } from "../interface.ts"; interface ICardsContainer { @@ -12,7 +12,15 @@ interface ICardsContainer { const CardsContainer = (props: ICardsContainer) => { return (
-
+
+ {/* {props.feilmeldinger.map((feilMelding) => ( + + ))} */} {props.feilmeldinger.map((feilMelding) => ( { ) } -const FeilCard = (props: IFeilmelding) => { - return ( - - - {props.tittel} - - {props.beskrivelse} - - - - - Hællæ - - +// const FeilCard1 = (props: IFeilmelding) => { +// return ( +// +// +// {props.tittel} +// +// {props.beskrivelse} +// +// +// +// +// Hællæ +// +// +// ) +// } +// export default FeilCard1; + +export const FeilCard = (props: IFeilmelding) => { + return( +
+
+ {props.tittel} +

{props.beskrivelse}

+
+ +
) } - -export default FeilCard;