From 65c146fa877c4aab0d373e9a765d8e38d922fcd4 Mon Sep 17 00:00:00 2001 From: Markus Johansen Date: Wed, 2 Aug 2023 18:34:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=F0=9F=90=9B=20Bruker=20switch=20ti?= =?UTF-8?q?l=20=C3=A5=20endre=20om=20sak=20haster=20i=20redigering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG: La også til kommentar-field for å unngå BAD_REQUEST på Posting av nye feil --- frontend/src/components/RedigeringsVerktoy.tsx | 13 ++++--------- frontend/src/pages/feil.tsx | 3 ++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/RedigeringsVerktoy.tsx b/frontend/src/components/RedigeringsVerktoy.tsx index cb22ea8..6a9c8e5 100644 --- a/frontend/src/components/RedigeringsVerktoy.tsx +++ b/frontend/src/components/RedigeringsVerktoy.tsx @@ -1,5 +1,5 @@ import { FloppydiskIcon, XMarkIcon } from "@navikt/aksel-icons" -import { TextField, Textarea, RadioGroup, Radio, Button } from "@navikt/ds-react" +import { TextField, Textarea, RadioGroup, Radio, Button, Switch } from "@navikt/ds-react" import { useState } from "react" import { FeilmeldingsInnholdInterface } from "../interface" import axios from "axios" @@ -62,14 +62,9 @@ const RedigeringsVerktoy = (props: redigeringsInterface) => { Feilen jobbes med Feilen er fikset - {setHaster(haster)}} - value={haster} - > - Ja - Nei - + setHaster(!haster)}> + Saken haster +