chore: updated modal and form validations (#4748)
This commit is contained in:
parent
666d35afb9
commit
423bc15119
9 changed files with 176 additions and 134 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue