diff --git a/src/components/Modal/ModalContent.tsx b/src/components/Modal/ModalContent.tsx index fb84d551cfb6..a5a6f49dd33f 100644 --- a/src/components/Modal/ModalContent.tsx +++ b/src/components/Modal/ModalContent.tsx @@ -17,10 +17,10 @@ type ModalContentProps = { }; function ModalContent({children, onDismiss = () => {}, onModalWillShow = () => {}}: ModalContentProps) { - // eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps React.useEffect(() => { onModalWillShow(); return onDismiss; + // eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps }, []); return children; }