From a4905d94be97e8b69f12a944c0f9a531501ef4aa Mon Sep 17 00:00:00 2001 From: K153697 Date: Tue, 14 Nov 2023 10:24:45 +0100 Subject: [PATCH] Endre confirmation Panel til Ds checkbox --- .../frontend/src/components/krav/EditKrav.tsx | 69 ++++++++++--------- 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/apps/frontend/src/components/krav/EditKrav.tsx b/apps/frontend/src/components/krav/EditKrav.tsx index bc2d77f6f..c584eb5b7 100644 --- a/apps/frontend/src/components/krav/EditKrav.tsx +++ b/apps/frontend/src/components/krav/EditKrav.tsx @@ -12,7 +12,6 @@ import { RegelverkEdit } from './Edit/RegelverkEdit' import { KravSuksesskriterierEdit } from './Edit/KravSuksesskriterieEdit' import { EditBegreper } from './Edit/KravBegreperEdit' import CustomizedModal from '../common/CustomizedModal' -import Button from '../common/Button' import { ettlevColors, responsivePaddingLarge, responsiveWidthLarge, theme } from '../../util/theme' import { getEtterlevelserByKravNumberKravVersion } from '../../api/EtterlevelseApi' import ErrorModal from '../ErrorModal' @@ -25,7 +24,7 @@ import { Modal as BaseModal, ModalBody, ModalHeader } from 'baseui/modal' import { EditKravRelasjoner } from './Edit/EditKravRelasjoner' import AlertUnsavedPopup from '../common/AlertUnsavedPopup' import _ from 'lodash' -import {Alert, BodyShort, ConfirmationPanel, Heading} from "@navikt/ds-react"; +import {Alert, BodyShort, Button, Checkbox, CheckboxGroup, Heading} from "@navikt/ds-react"; type EditKravProps = { krav: KravQL @@ -238,18 +237,24 @@ export const EditKrav = ({ krav, close, formRef, isOpen, setIsOpen, newVersion, tooltip={'Gi kravet en kort tittel. Kravet formuleres som en aktivitet eller målsetting.'} />
- setVarselMeldingActive(!varlselMeldingActive)} + - Gi kravet en varselmelding (eks. for kommende krav) - {varlselMeldingActive && ( -
- -
- )} -
+ { + setVarselMeldingActive(!varlselMeldingActive) + }} + >Gi kravet en varselmelding (eks. for kommende krav) + + + + {varlselMeldingActive && ( +
+ +
+ )} +
- - {(newVersion || krav.status === KravStatus.UTKAST) && ( -