From 194bda6739ca709134cef31e467502e372595e70 Mon Sep 17 00:00:00 2001 From: Markus Johansen Date: Wed, 2 Aug 2023 18:50:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Gj=C3=B8r=20sm=C3=A5=20styling?= =?UTF-8?q?=20forbedringer,=20forbedret=20UU=20ved=20=C3=A5=20lage=20skill?= =?UTF-8?q?elinjer=20i=20forms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/BildeOpplastning.tsx | 5 ++++- frontend/src/components/FeilModal.tsx | 2 +- frontend/src/components/RedigeringsVerktoy.tsx | 5 ++++- frontend/src/components/Skillelinje.tsx | 8 ++++++++ frontend/src/pages/feil.tsx | 3 +++ 5 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 frontend/src/components/Skillelinje.tsx diff --git a/frontend/src/components/BildeOpplastning.tsx b/frontend/src/components/BildeOpplastning.tsx index f3eb29b..345dfa3 100644 --- a/frontend/src/components/BildeOpplastning.tsx +++ b/frontend/src/components/BildeOpplastning.tsx @@ -1,5 +1,5 @@ import { FileImageIcon, UploadIcon } from "@navikt/aksel-icons" -import { Button } from "@navikt/ds-react" +import { Button, Heading } from "@navikt/ds-react" /** @@ -10,6 +10,9 @@ import { Button } from "@navikt/ds-react" const BildeOpplastning = () => { return(
+ + Skjermbilder +
props.setOpen(false)} diff --git a/frontend/src/components/RedigeringsVerktoy.tsx b/frontend/src/components/RedigeringsVerktoy.tsx index 6a9c8e5..9b7c2f9 100644 --- a/frontend/src/components/RedigeringsVerktoy.tsx +++ b/frontend/src/components/RedigeringsVerktoy.tsx @@ -3,6 +3,7 @@ import { TextField, Textarea, RadioGroup, Radio, Button, Switch } from "@navikt/ import { useState } from "react" import { FeilmeldingsInnholdInterface } from "../interface" import axios from "axios" +import Skillelinje from "./Skillelinje" interface redigeringsInterface extends FeilmeldingsInnholdInterface { reset: () => void @@ -53,6 +54,7 @@ const RedigeringsVerktoy = (props: redigeringsInterface) => { value={beskrivelse} onChange={e => setBeskrivelse(e.target.value)} /> + {setArbeidsstatus(arbeidsstatus)}} @@ -62,6 +64,7 @@ const RedigeringsVerktoy = (props: redigeringsInterface) => { Feilen jobbes med Feilen er fikset + setHaster(!haster)}> Saken haster @@ -87,4 +90,4 @@ const RedigeringsVerktoy = (props: redigeringsInterface) => {
) } -export default RedigeringsVerktoy; \ No newline at end of file +export default RedigeringsVerktoy; diff --git a/frontend/src/components/Skillelinje.tsx b/frontend/src/components/Skillelinje.tsx new file mode 100644 index 0000000..1df1ccd --- /dev/null +++ b/frontend/src/components/Skillelinje.tsx @@ -0,0 +1,8 @@ + + +const Skillelinje = () => { + return ( +
+ ) +} +export default Skillelinje \ No newline at end of file diff --git a/frontend/src/pages/feil.tsx b/frontend/src/pages/feil.tsx index 2cbd365..f962b90 100644 --- a/frontend/src/pages/feil.tsx +++ b/frontend/src/pages/feil.tsx @@ -7,6 +7,7 @@ import { useState } from "react"; import BildeOpplastning from "../components/BildeOpplastning"; import Header from "../components/Header"; import { useNavigate } from "react-router-dom"; +import Skillelinje from "../components/Skillelinje"; export default function Feil() { const [tittel, setTittel] = useState(""); @@ -85,7 +86,9 @@ export default function Feil() { description="Detaljert beskrivelse av problemet" onChange={e => setBeskrivelse(e.target.value)} /> + +
{status != 0 ? handleAlerts() : <>}