diff --git a/apps/frontend/src/components/krav/EditKrav.tsx b/apps/frontend/src/components/krav/EditKrav.tsx index ab46ad066..594e766ff 100644 --- a/apps/frontend/src/components/krav/EditKrav.tsx +++ b/apps/frontend/src/components/krav/EditKrav.tsx @@ -4,7 +4,7 @@ import { createKrav, getKravByKravNumberAndVersion, kravMapToFormVal, updateKrav import React, { useEffect } from 'react' import * as yup from 'yup' import { codelist, ListName } from '../../services/Codelist' -import { InputField, MultiInputField, TextAreaField } from '../common/Inputs' +import { MultiInputField, TextAreaField } from '../common/Inputs' import axios from 'axios' import { env } from '../../util/env' import { KravVarslingsadresserEdit } from './Edit/KravVarslingsadresserEdit' @@ -20,9 +20,8 @@ import { ErrorMessageModal } from './ErrorMessageModal' import { EditKravMultiOptionField } from './Edit/EditKravMultiOptionField' import { user } from '../../services/User' import { EditKravRelasjoner } from './Edit/EditKravRelasjoner' -import AlertUnsavedPopup from '../common/AlertUnsavedPopup' import _ from 'lodash' -import {Alert, BodyShort, Button, Checkbox, CheckboxGroup, Heading, Modal} from "@navikt/ds-react"; +import {Alert, BodyShort, Button, Checkbox, CheckboxGroup, Heading, Modal, Textarea, TextField} from "@navikt/ds-react"; type EditKravProps = { krav: KravQL @@ -37,6 +36,7 @@ type EditKravProps = { const maxInputWidth = '400px' const inputMarginBottom = theme.sizing.scale900 +const modalWidth = '1276px' export const kravModal = () => document.querySelector('#krav-modal') @@ -159,23 +159,12 @@ export const EditKrav = ({ krav, close, formRef, isOpen, setIsOpen, newVersion, return (