setup organization modal, it seprated form another becuase this modal can open anywhere at one hook

This commit is contained in:
pramod mahajan 2025-09-15 19:56:45 +05:30
parent 99eaf92e3f
commit 979293ad90
2 changed files with 1 additions and 4 deletions

View File

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