diff --git a/src/hooks/useNavigateHome.tsx b/src/hooks/useNavigateHome.tsx index f901803..dd86bc4 100644 --- a/src/hooks/useNavigateHome.tsx +++ b/src/hooks/useNavigateHome.tsx @@ -2,8 +2,10 @@ import { useNavigate } from 'react-router-dom'; const useNavigateHome = () => { const navigate = useNavigate(); - navigate('/'); - return <>; + const navigateHome = () => { + navigate('/'); + }; + return navigateHome; }; export default useNavigateHome; diff --git a/src/pages/CompletePage.tsx b/src/pages/CompletePage.tsx index 5378768..c7ee48a 100644 --- a/src/pages/CompletePage.tsx +++ b/src/pages/CompletePage.tsx @@ -5,13 +5,14 @@ import Button from '../components/Button'; import useNavigateHome from '../hooks/useNavigateHome'; const CompletePage = () => { + const navigateHome = useNavigateHome(); return ( 서비스를 탈퇴 완료 그동안 레코드림을 이용해주셔서
감사합니다.
-