fix: Retain fullscreen modal as default for those triggered outside of showModal

This commit is contained in:
Tom Moor
2024-02-03 15:06:54 -05:00
parent 21bb8d36ae
commit e38796d14b
3 changed files with 17 additions and 17 deletions

View File

@@ -22,7 +22,7 @@ function Dialogs() {
<Modal
key={id}
isOpen={modal.isOpen}
fullscreen={modal.fullscreen}
fullscreen={modal.fullscreen ?? false}
onRequestClose={() => dialogs.closeModal(id)}
title={modal.title}
>

View File

@@ -31,7 +31,7 @@ type Props = {
const Modal: React.FC<Props> = ({
children,
isOpen,
fullscreen,
fullscreen = true,
title = "Untitled",
onRequestClose,
}: Props) => {