Skip to content

Commit

Permalink
legge på type i stedet for implicit any
Browse files Browse the repository at this point in the history
  • Loading branch information
vebnor committed Jan 8, 2025
1 parent 2f3b88c commit b5bb91e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import RadioGroupPanel from '../../../shared/hook-form/RadioGroupPanel';
import type { KravDokument } from '../types/KravDokumentStatus';
import { formatDate } from '../utils';
import styles from './SoknadsfristVilkarDokument.module.css';
import type { Dayjs } from 'dayjs';

const minLength3 = minLength(3);
const maxLength1500 = maxLength(1500);
Expand Down Expand Up @@ -75,8 +76,8 @@ export const SoknadsfristVilkarDokument = ({
[dokument.innsendingstidspunkt, dokument.journalpostId],
);

const isAtleastDate = useCallback(v => dateAfterOrEqual(minDate)(v), [minDate]);
const isAtmostDate = useCallback(v => dateBeforeOrEqual(maxDate)(v), [maxDate]);
const isAtleastDate = useCallback((v: string | Dayjs | undefined) => dateAfterOrEqual(minDate)(v), [minDate]);
const isAtmostDate = useCallback((v: string | Dayjs | undefined) => dateBeforeOrEqual(maxDate)(v), [maxDate]);
const showRedigerVurderingButton =
!erOverstyrt && dokumentErVurdert && !redigerVurdering && kanEndrePåSøknadsopplysninger;

Expand Down

0 comments on commit b5bb91e

Please sign in to comment.