Skip to content

Commit

Permalink
[FE] refactor: LandingPage 경로 변경 (#249)
Browse files Browse the repository at this point in the history
* refactor: LandingPage의 경로 변경

* refactor: App 에서 사이드바 주석 처리
  • Loading branch information
BadaHertz52 authored Aug 8, 2024
1 parent 670b601 commit c771bf2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const App = () => {

return (
<PageLayout>
{isSidebarModalOpen && (
{/* {isSidebarModalOpen && (
<SideModal isSidebarHidden={isSidebarHidden} closeModal={closeSidebar}>
<Sidebar closeSidebar={closeSidebar} />
</SideModal>
)}
)} */}
<Topbar openSidebar={openSidebar} />
<Main>
<Outlet />
Expand Down
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 c771bf2

Please sign in to comment.