✨ Ved lagring av redigering lukkes modal
This commit is contained in:
parent
89954388b4
commit
44e9ccb26c
4 changed files with 12 additions and 14 deletions
|
|
@ -1,15 +1,8 @@
|
|||
import { PencilIcon, XMarkIcon } from "@navikt/aksel-icons"
|
||||
import { Button } from "@navikt/ds-react"
|
||||
import { IFeilmelding } from "../interface"
|
||||
import { FeilmeldingsInnholdInterface } from "../interface"
|
||||
import FeilkortHeader from "./FeilkortHeader"
|
||||
|
||||
|
||||
interface FeilmeldingsInnholdInterface extends IFeilmelding {
|
||||
children: React.ReactNode
|
||||
setVisModal: (visModal: boolean) => void
|
||||
setRedigeringsmodus: (redigeringsmodus: boolean) => void
|
||||
}
|
||||
|
||||
const FeilmeldingsInnhold = (props: FeilmeldingsInnholdInterface) => {
|
||||
return(
|
||||
<div>
|
||||
|
|
@ -34,7 +27,7 @@ const FeilmeldingsInnhold = (props: FeilmeldingsInnholdInterface) => {
|
|||
onClick={() => {
|
||||
props.setVisModal(false)
|
||||
props.setRedigeringsmodus(false)
|
||||
}}
|
||||
} }
|
||||
>
|
||||
Lukk
|
||||
</Button>
|
||||
|
|
|
|||
Reference in a new issue