From c771bf2310c3aab02d4ad812e8cafcd4e9e22b0a Mon Sep 17 00:00:00 2001 From: badahertz52 Date: Thu, 8 Aug 2024 11:43:31 +0900 Subject: [PATCH] =?UTF-8?q?[FE]=20refactor:=20LandingPage=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20(#249)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: LandingPage의 경로 변경 * refactor: App 에서 사이드바 주석 처리 --- frontend/src/App.tsx | 4 ++-- .../components/common/modals/LoginRedirectModal/index.tsx | 2 +- frontend/src/components/error/ErrorFallback/index.tsx | 2 +- frontend/src/index.tsx | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 603c083ed..c6e2a3a78 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -8,11 +8,11 @@ const App = () => { return ( - {isSidebarModalOpen && ( + {/* {isSidebarModalOpen && ( - )} + )} */}
diff --git a/frontend/src/components/common/modals/LoginRedirectModal/index.tsx b/frontend/src/components/common/modals/LoginRedirectModal/index.tsx index 1a6d7f72d..8cfb1136e 100644 --- a/frontend/src/components/common/modals/LoginRedirectModal/index.tsx +++ b/frontend/src/components/common/modals/LoginRedirectModal/index.tsx @@ -5,7 +5,7 @@ import AlertModal from '../AlertModal'; const LoginRedirectModal = () => { const navigate = useNavigate(); const handleClickCloseButton = () => { - navigate('/home'); + navigate('/'); }; return ( diff --git a/frontend/src/components/error/ErrorFallback/index.tsx b/frontend/src/components/error/ErrorFallback/index.tsx index 2072cd21b..92b2fd410 100644 --- a/frontend/src/components/error/ErrorFallback/index.tsx +++ b/frontend/src/components/error/ErrorFallback/index.tsx @@ -7,7 +7,7 @@ const ErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => { const navigate = useNavigate(); const handleGoHome = () => { resetErrorBoundary(); - navigate('/home'); //TODO : 홈 페이지 경로가 결정되면 변경 + navigate('/'); //TODO : 홈 페이지 경로가 결정되면 변경 }; return ; diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 50a986ca3..be86507be 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -48,6 +48,10 @@ const router = createBrowserRouter([ element: , errorElement: , children: [ + { + path: '', + element: , + }, { path: 'user', element:
user
, @@ -65,10 +69,6 @@ const router = createBrowserRouter([ path: 'user/detailed-review/:reviewId', element: , }, - { - path: 'home', - element: , - }, ], }, ]);