setup organization modal, it seprated form another becuase this modal can open anywhere at one hook
This commit is contained in:
parent
99eaf92e3f
commit
979293ad90
@ -15,10 +15,7 @@ const Modal = ({
|
|||||||
onClose();
|
onClose();
|
||||||
}, [disabled, onClose]);
|
}, [disabled, onClose]);
|
||||||
|
|
||||||
const handleSubmit = useCallback(() => {
|
|
||||||
if (disabled) return;
|
|
||||||
onSubmit();
|
|
||||||
}, [disabled, onSubmit]);
|
|
||||||
|
|
||||||
if (!isOpen) return null;
|
if (!isOpen) return null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user