Skip to content

Commit

Permalink
feat: 토큰 여부 확인 컴포넌트 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
gominzip committed Aug 26, 2024
1 parent 79f095f commit e4da4bf
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import CreateTalePage from "@pages/CreateTalePage";
import TaleLearnPage from "@pages/TaleLearnPage";
import PreLearningQuestionPage from "@pages/PreLearningQuestionPage";
import MoreRecentTales from "@components/home/homeRecentTales/MoreRecentTales";
import PrivateRoute from "@utils/PrivateRoute";

const router = createBrowserRouter([
{
Expand All @@ -29,47 +30,47 @@ const router = createBrowserRouter([
},
{
path: "/onboarding",
element: <OnboardingPage />,
element: <PrivateRoute element={<OnboardingPage />} />,
},
{
path: "/home",
element: <HomePage />,
element: <PrivateRoute element={<HomePage />} />,
},
{
path: "/more",
element: <MoreRecentTales />,
element: <PrivateRoute element={<MoreRecentTales />} />,
},
{
path: "/learnTale",
element: <LearningPage />,
element: <PrivateRoute element={<LearningPage />} />,
},
{
path: "/createTale",
element: <CreateMainPage />,
element: <PrivateRoute element={<CreateMainPage />} />,
},
{
path: "/createTale/keyword",
element: <SelectKeywordPage />,
element: <PrivateRoute element={<SelectKeywordPage />} />,
},
{
path: "/createTale/details",
element: <TaleDetailPage />,
element: <PrivateRoute element={<TaleDetailPage />} />,
},
{
path: "/createTale/generate",
element: <CreateTalePage />,
element: <PrivateRoute element={<CreateTalePage />} />,
},
{
path: "/readTale",
element: <ReadTalePage />,
element: <PrivateRoute element={<ReadTalePage />} />,
},
{
path: "/learnTale/pre",
element: <PreLearningQuestionPage />,
element: <PrivateRoute element={<PreLearningQuestionPage />} />,
},
{
path: "/learnTale/quiz",
element: <TaleLearnPage />,
element: <PrivateRoute element={<TaleLearnPage />} />,
},
]);

Expand Down

0 comments on commit e4da4bf

Please sign in to comment.