diff --git a/src/apps/opening-hours-editor/useDialog.tsx b/src/apps/opening-hours-editor/useDialog.tsx index 60d19bfd1c..305a53dc3d 100644 --- a/src/apps/opening-hours-editor/useDialog.tsx +++ b/src/apps/opening-hours-editor/useDialog.tsx @@ -1,5 +1,12 @@ import { useRef, useState } from "react"; +declare global { + interface HTMLDialogElement { + showModal(): void; + close(): void; + } +} + const useDialog = () => { const [dialogContent, setDialogContent] = useState(null);