File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { useMultipleFadeInOnView } from '@/page/home/hook/useMultipleFadeInOnVie
99import mandalAnimation from '@/assets/lottie/mandalart.json' ;
1010import aiAnimation from '@/assets/lottie/ai.json' ;
1111import todoAnimation from '@/assets/lottie/todo.json' ;
12- import { useModal } from '@/common/hook/useModal ' ;
12+ import { useOverlayModal } from '@/common/hook/useOverlayModal ' ;
1313import LoginModal from '@/common/component/LoginModal/LoginModal' ;
1414
1515const animationDataArray = [ mandalAnimation , aiAnimation , todoAnimation ] ;
@@ -19,7 +19,7 @@ const Home = () => {
1919 const scrolls = useMultipleFadeInOnView ( ) ;
2020 const end = useFadeInOnView < HTMLDivElement > ( ) ;
2121
22- const { openModal, closeModal, ModalWrapper } = useModal ( ) ;
22+ const { openModal, closeModal } = useOverlayModal ( ) ;
2323
2424 const handleOpenLogin = ( ) => {
2525 openModal ( < LoginModal onClose = { closeModal } /> ) ;
@@ -44,7 +44,6 @@ const Home = () => {
4444 } ) }
4545
4646 < EndSection fadeInRef = { end . ref } visible = { end . visible } onClick = { handleOpenLogin } />
47- { ModalWrapper }
4847 </ div >
4948 ) ;
5049} ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import * as styles from './Header.css';
66import { PATH } from '@/route/path' ;
77import IcLogo from '@/assets/svg/IcLogo' ;
88import LoginModal from '@/common/component/LoginModal/LoginModal' ;
9- import { useModal } from '@/common/hook/useModal ' ;
9+ import { useOverlayModal } from '@/common/hook/useOverlayModal ' ;
1010import { useGetUser } from '@/api/domain/signup/hook/useGetUser' ;
1111import UserModal from '@/common/component/UserModal/UserModal' ;
1212
@@ -28,7 +28,7 @@ const Header = () => {
2828 const [ activeMenu , setActiveMenu ] = useState < string > ( initialMenu ) ;
2929 const [ openProfile , setOpenProfile ] = useState < boolean > ( false ) ;
3030
31- const { openModal, closeModal, ModalWrapper } = useModal ( ) ;
31+ const { openModal, closeModal } = useOverlayModal ( ) ;
3232
3333 const handleLogin = ( ) => {
3434 openModal ( < LoginModal onClose = { closeModal } /> ) ;
@@ -91,7 +91,6 @@ const Header = () => {
9191 </ button >
9292 ) }
9393 </ div >
94- { ModalWrapper }
9594 </ header >
9695 ) ;
9796} ;
You can’t perform that action at this time.
0 commit comments