Skip to content

Commit

Permalink
refactor: LandingPage의 경로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
BadaHertz52 committed Aug 8, 2024
1 parent d5e3742 commit cbce6ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import AlertModal from '../AlertModal';
const LoginRedirectModal = () => {
const navigate = useNavigate();
const handleClickCloseButton = () => {
navigate('/home');
navigate('/');
};

return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/error/ErrorFallback/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => {
const navigate = useNavigate();
const handleGoHome = () => {
resetErrorBoundary();
navigate('/home'); //TODO : 홈 페이지 경로가 결정되면 변경
navigate('/'); //TODO : 홈 페이지 경로가 결정되면 변경
};

return <ErrorSection errorMessage={error.message} handleGoHome={handleGoHome} handleReload={resetErrorBoundary} />;
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ const router = createBrowserRouter([
element: <App />,
errorElement: <ErrorPage />,
children: [
{
path: '',
element: <LandingPage />,
},
{
path: 'user',
element: <div>user</div>,
Expand All @@ -65,10 +69,6 @@ const router = createBrowserRouter([
path: 'user/detailed-review/:reviewId',
element: <DetailedReviewPage />,
},
{
path: 'home',
element: <LandingPage />,
},
],
},
]);
Expand Down

0 comments on commit cbce6ba

Please sign in to comment.