diff --git a/src/components/modal/Modal.tsx b/src/components/modal/Modal.tsx index d7b71a5..c2de9e4 100644 --- a/src/components/modal/Modal.tsx +++ b/src/components/modal/Modal.tsx @@ -12,6 +12,13 @@ export default function Modal(props: ModalProps){ className, children } = props; + const divProps = {...props}; + delete divProps["children"]; + delete divProps["display"]; + delete divProps["backgroundType"]; + delete divProps["backgroundClassName"]; + delete divProps["close"]; + delete divProps["className"]; return ( @@ -25,7 +32,7 @@ export default function Modal(props: ModalProps){ close={close} />
{ backgroundType?: ModalBackgroundType; - close: () => void; + close?: () => void; } export interface ModalProps extends HTMLProps{ - display: boolean; + display?: boolean; backgroundType?: ModalBackgroundType; backgroundClassName?: string; - close: () => void; + close?: () => void; children: React.ReactNode; } diff --git a/src/pages/public/HomePage.tsx b/src/pages/public/HomePage.tsx index fa009cb..dace3a8 100644 --- a/src/pages/public/HomePage.tsx +++ b/src/pages/public/HomePage.tsx @@ -20,7 +20,7 @@ export default function HomePage(){ return (
- Home Page +
Home Page