Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperbirch1 committed Mar 20, 2024
1 parent 144841a commit 99e37f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/apps/opening-hours-editor/useDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ const useDialog = () => {
const dialogRef = useRef<HTMLDialogElement>(null);

const closeDialog = () => {
dialogRef.current?.close();
if (!dialogRef.current) return;
dialogRef.current.close();

Check failure on line 10 in src/apps/opening-hours-editor/useDialog.tsx

View workflow job for this annotation

GitHub Actions / Typescript compile check

Property 'close' does not exist on type 'HTMLDialogElement'.
};

const openDialogWithContent = (content: React.ReactNode) => {
if (!dialogRef.current) return;
setDialogContent(content);
dialogRef.current?.showModal();
dialogRef.current.showModal();

Check failure on line 16 in src/apps/opening-hours-editor/useDialog.tsx

View workflow job for this annotation

GitHub Actions / Typescript compile check

Property 'showModal' does not exist on type 'HTMLDialogElement'.
};

return {
Expand Down

0 comments on commit 99e37f4

Please sign in to comment.