This commit is contained in:
WithoutPants
2021-05-20 16:58:43 +10:00
committed by GitHub
parent 0f579076b6
commit 76019af3e5
209 changed files with 15361 additions and 22 deletions

View File

@@ -22,6 +22,8 @@ interface IModal {
dialogClassName?: string;
}
const defaultOnHide = () => {};
const ModalComponent: React.FC<IModal> = ({
children,
show,
@@ -37,7 +39,7 @@ const ModalComponent: React.FC<IModal> = ({
}) => (
<Modal
keyboard={false}
onHide={onHide}
onHide={onHide ?? defaultOnHide}
show={show}
dialogClassName={dialogClassName}
{...modalProps}