aboutsummaryrefslogtreecommitdiff
path: root/src/components/Modal.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Modal.tsx')
-rw-r--r--src/components/Modal.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx
index 55ad174..80d482e 100644
--- a/src/components/Modal.tsx
+++ b/src/components/Modal.tsx
@@ -22,7 +22,10 @@ export default function Modal({
}: ModalProps) {
return (
open && (
- <div className="z-999 fixed left-0 top-0 flex h-full w-full items-center justify-center bg-black bg-opacity-50 py-10">
+ <div
+ className="z-999 fixed left-0 top-0 flex h-full w-full items-center justify-center bg-black bg-opacity-50 py-10"
+ onClick={() => onOk()}
+ >
<div className="max-h-full w-full max-w-xl overflow-y-auto sm:rounded-2xl bg-white">
<div className="w-full">
<div className="mx-auto my-20 max-w-[400px] flex flex-col gap-5">