chore: updated modal and form validations (#4748)

This commit is contained in:
guru_sainath 2024-06-10 23:47:30 +05:30 committed by GitHub
parent 666d35afb9
commit 423bc15119
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 176 additions and 134 deletions

View file

@ -17,7 +17,7 @@ export enum EModalWidth {
type Props = {
children: React.ReactNode;
handleClose: () => void;
handleClose?: () => void;
isOpen: boolean;
position?: EModalPosition;
width?: EModalWidth;
@ -27,7 +27,7 @@ export const ModalCore: React.FC<Props> = (props) => {
return (
<Transition.Root show={isOpen} as={Fragment}>
<Dialog as="div" className="relative z-20" onClose={handleClose}>
<Dialog as="div" className="relative z-20" onClose={() => handleClose && handleClose}>
<Transition.Child
as={Fragment}
enter="ease-out duration-300"