Skip to content

Commit

Permalink
Krever gyldig dato i 9291 (#6714)
Browse files Browse the repository at this point in the history
  • Loading branch information
vebnor authored Oct 18, 2024
1 parent ca34575 commit 79eef0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button } from '@navikt/ds-react';
import { Datepicker, Form, TextAreaField } from '@navikt/ft-form-hooks';
import { maxLength, minLength, required } from '@navikt/ft-form-validators';
import { hasValidDate, maxLength, minLength, required } from '@navikt/ft-form-validators';
import React from 'react';
import { useForm } from 'react-hook-form';
import ContainerContext from '../../context/ContainerContext';
Expand Down Expand Up @@ -38,7 +38,7 @@ const VurderDatoAksjonspunkt = ({ avbryt, initialValues }: Props) => {
defaultMonth={new Date()}
fromDate={new Date('1 Jan 2019')}
toDate={new Date('31 Dec 2025')}
validate={[required]}
validate={[required, hasValidDate]}
/>
<TextAreaField
name="begrunnelse"
Expand Down

0 comments on commit 79eef0b

Please sign in to comment.