Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fjerner unødig preventDefault for lukk av modal
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeofnorway committed Dec 18, 2023
1 parent 2249282 commit 4d69110
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/komponenter/header/logoutWarning/LogoutWarning.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BodyLong, Button, Modal } from '@navikt/ds-react';
import React, { SyntheticEvent, useEffect } from 'react';
import React, { useEffect } from 'react';
import { useLoginStatus } from 'utils/hooks/useLoginStatus';
import { finnTekst } from 'tekster/finn-tekst';
import classNames from 'classnames';
Expand Down Expand Up @@ -43,8 +43,7 @@ export const LogoutWarning = () => {
}
}, [isTokenExpiring, isSessionExpiring]);

const onCloseHandler = (e: SyntheticEvent<HTMLElement, Event>) => {
e.preventDefault();
const onCloseHandler = () => {
setIsOpen(false);
};

Expand Down

0 comments on commit 4d69110

Please sign in to comment.