feat: implement part of full-screen layout

This commit is contained in:
Steven
2023-12-18 22:10:36 +08:00
parent 15a091fe4c
commit d6656db20d
21 changed files with 116 additions and 255 deletions

View File

@ -12,7 +12,6 @@ const Explore = lazy(() => import("@/pages/Explore"));
const Home = lazy(() => import("@/pages/Home"));
const UserProfile = lazy(() => import("@/pages/UserProfile"));
const MemoDetail = lazy(() => import("@/pages/MemoDetail"));
const EmbedMemo = lazy(() => import("@/pages/EmbedMemo"));
const Archived = lazy(() => import("@/pages/Archived"));
const DailyReview = lazy(() => import("@/pages/DailyReview"));
const Resources = lazy(() => import("@/pages/Resources"));
@ -103,24 +102,20 @@ const router = createBrowserRouter([
path: "explore",
element: <Explore />,
},
{
path: "m/:memoId",
element: <MemoDetail />,
},
{
path: "u/:username",
element: <UserProfile />,
},
{
path: "*",
element: <NotFound />,
},
],
},
{
path: "/m/:memoId",
element: <MemoDetail />,
},
{
path: "/m/:memoId/embed",
element: <EmbedMemo />,
},
{
path: "/u/:username",
element: <UserProfile />,
},
{
path: "*",
element: <NotFound />,
},
],
},
]);