From 75212e1f47573c8c1ab915119fe1ed4b675843df Mon Sep 17 00:00:00 2001 From: Markus Johansen Date: Thu, 3 Aug 2023 12:37:22 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Lagt=20til=20mulighet=20for=20?= =?UTF-8?q?=C3=A5=20legge=20til=20kategorier=20og=20akt=C3=B8rID=20p=C3=A5?= =?UTF-8?q?=20innmelding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/feil.tsx | 59 ++++++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 8 deletions(-) diff --git a/frontend/src/pages/feil.tsx b/frontend/src/pages/feil.tsx index 658ac99..1c1a502 100644 --- a/frontend/src/pages/feil.tsx +++ b/frontend/src/pages/feil.tsx @@ -1,7 +1,7 @@ import "@navikt/ds-css"; import { ArrowLeftIcon, BugIcon } from "@navikt/aksel-icons"; -import { Alert, Button, Heading, Switch, TextField, Textarea } from "@navikt/ds-react"; +import { Alert, Button, Chips, Heading, Switch, TextField, Textarea } from "@navikt/ds-react"; import axios from "axios"; import { useState } from "react"; import BildeOpplastning from "../components/BildeOpplastning"; @@ -14,6 +14,8 @@ export default function Feil() { const [beskrivelse, setBeskrivelse] = useState(""); const [status, setStatus] = useState(0) const [haster, setHaster] = useState(false) + const [valgteTags, setValgteTags] = useState([] as string[]); + const [aktørId, setAktørId] = useState(""); const handleSubmit = () => { @@ -25,6 +27,8 @@ export default function Feil() { arbeidsstatus: 0, haster: haster, kommentar: null + //kategorier: valgteTags + //aktørId: aktørId } axios.post("/api/nyfeil", payload, { @@ -58,12 +62,20 @@ export default function Feil() { const navigate = useNavigate() + const tags = [ + "Utbetaling", + "Inntekt", + "Speil", + "Annet" + ]; + return (
-
-
-
+
+
+ +
setTittel(e.target.value)} /> +