initially setup

This commit is contained in:
pramod mahajan 2025-09-15 16:27:06 +05:30
parent 28b0541894
commit 99eaf92e3f
2 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ const Modal = ({
onClose();
}, [disabled, onClose]);
const handleSubmit = useCallback(() => {
if (disabled) return;
onSubmit();
}, [disabled, onSubmit]);
if (!isOpen) return null;