From cbce6ba5d96c76a939e634713b603c78a8526701 Mon Sep 17 00:00:00 2001 From: badahertz52 Date: Thu, 8 Aug 2024 11:30:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20LandingPage=EC=9D=98=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/modals/LoginRedirectModal/index.tsx | 2 +- frontend/src/components/error/ErrorFallback/index.tsx | 2 +- frontend/src/index.tsx | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) 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: , - }, ], }, ]); From 75bec10917c08f18e3b5eb4d93c6659f0f078b4e Mon Sep 17 00:00:00 2001 From: badahertz52 Date: Thu, 8 Aug 2024 11:35:44 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20App=20=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B0=94=20=EC=A3=BC=EC=84=9D=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 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 && ( - )} + )} */}