Skip to content

Commit

Permalink
Fix(router): 가이드라인, 서비스 기록 페이지 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobbymin committed Oct 25, 2024
1 parent 4c5e2fa commit 6c9f1a0
Showing 1 changed file with 43 additions and 35 deletions.
78 changes: 43 additions & 35 deletions src/app/routes/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import {
HelloCallReportPage,
SeniorRegisterPage,
CallBackListPage,
CallBackDetailPage,
SinittoGuideLinePage,
CallBackDetailPage, // SinittoGuideLinePage,
SinittoReviewPage,
HelloCallApplyPage,
GuardMainPage,
Expand Down Expand Up @@ -52,48 +51,58 @@ export const router = createBrowserRouter([
children: [
{
path: '',
element: <GuardMainPage />,
},
{
element: <Layout title='가이드라인 목록' />,
children: [
{
path: RouterPath.GUARD_GUIDELINE,
element: <GuideLinePage />,
index: true,
element: <GuardMainPage />,
},
],
},
{
path: RouterPath.MYPAGE,
element: <Layout title='마이페이지' />,
children: [
{
index: true,
element: <GuardMyPage />,
path: '',
element: <Layout title='마이페이지' />,
children: [
{
index: true,
element: <GuardMyPage />,
},
],
},
],
},
{
path: RouterPath.SERVICE_HISTORY,
element: <Layout title='서비스 이용내역' />,
children: [
{
index: true,
element: <ServiceHistoryPage />,
path: RouterPath.SERVICE_HISTORY,
element: <Layout title='서비스 이용내역' />,
children: [
{
path: '',
element: <ServiceHistoryPage />,
},
],
},
],
},
{
// TODO: 이 페이지도 수정이 필요함.
path: RouterPath.CALL_BACK_GUID_LINE,
element: <Layout title='가이드라인' />,
element: <Layout title='가이드라인 목록' />,
children: [
{
index: true,
element: <SinittoGuideLinePage />,
path: RouterPath.GUARD_GUIDELINE,
element: <GuideLinePage />,
},
],
},
// {
// // TODO: 이 페이지도 수정이 필요함.
// path: RouterPath.CALL_BACK_GUID_LINE,
// element: <Layout title='가이드라인' />,
// children: [
// {
// index: true,
// element: <SinittoGuideLinePage />,
// },
// ],
// },
{
path: RouterPath.HELLO_CALL_GUARD_APPLY,
element: <Layout title='안부전화 서비스 신청' />,
Expand Down Expand Up @@ -146,6 +155,16 @@ export const router = createBrowserRouter([
},
],
},
{
path: RouterPath.SINITTO_REVIEW,
element: <Layout title='시니또 평가하기' />,
children: [
{
index: true,
element: <SinittoReviewPage />,
},
],
},
],
},

Expand Down Expand Up @@ -177,17 +196,6 @@ export const router = createBrowserRouter([
},
],
},
{
// TODO: 콜백에 들어가야 할지 가이드라인에 들어가야 할지 잘 모르겠음.
path: RouterPath.SINITTO_REVIEW,
element: <Layout title='시니또 평가하기' />,
children: [
{
index: true,
element: <SinittoReviewPage />,
},
],
},
]);

export const Routes = () => {
Expand Down

0 comments on commit 6c9f1a0

Please sign in to comment.