From 5200e1c9c63f1ec2c9e833cfec43f114752dd050 Mon Sep 17 00:00:00 2001 From: Markus Johansen Date: Fri, 28 Jul 2023 17:18:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20laget=20overlay=20med=20stort=20?= =?UTF-8?q?hvitt=20panel=20ved=20klikk=20av=20panel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/FeilCard.tsx | 32 ++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/FeilCard.tsx b/frontend/src/components/FeilCard.tsx index f67b197..78bdfc5 100644 --- a/frontend/src/components/FeilCard.tsx +++ b/frontend/src/components/FeilCard.tsx @@ -1,6 +1,7 @@ import "@navikt/ds-css"; -import { Heading, Tag } from "@navikt/ds-react"; +import { Button, Heading, Tag } from "@navikt/ds-react"; import { IFeilmelding } from "../interface"; +import { useState } from "react"; interface TagBarInterface { haster: boolean @@ -35,18 +36,45 @@ const TagBar = (props: TagBarInterface) => { // export default FeilCard1; export const FeilCard = (props: IFeilmelding) => { + const [visFeilinformasjon, setVisFeilinformasjon] = useState(false) + + const FullvisningsKort = () => { + return( +
+
+
+ +
+
+
+ ) + } + return(
+ " + onClick={() => { + setVisFeilinformasjon(true) + }}> +
{props.tittel}

{props.beskrivelse}

+ + {visFeilinformasjon ? : <>}
) }