diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx index 009f600..d3e0236 100644 --- a/src/components/Modal/index.tsx +++ b/src/components/Modal/index.tsx @@ -7,6 +7,7 @@ interface ModalProps { isCloseButtonVisible?: boolean; className?: string; containerClassName?: string; + type?: "hidden" | "normal"; onClose?: () => void; } @@ -16,6 +17,7 @@ function Modal({ isCloseButtonVisible = true, className = "", containerClassName = "", + type = "normal", onClose, }: ModalProps): JSX.Element { const handleClose = (event: React.MouseEvent) => { @@ -34,9 +36,14 @@ function Modal({ }; }, [open]); - if (!open) return <>; + if (!open && type === "normal") return <>; return ( -
+
{isCloseButtonVisible && (