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)} /> +