首页页面
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { createBrowserRouter } from "react-router-dom"
|
||||
import Channels from "@/admin/channels/page"
|
||||
import Dashboard from "@/admin/dashboard/page"
|
||||
import Funds from "@/admin/funds/page"
|
||||
import AdminLayout from "@/admin/layout"
|
||||
import Whitelist from "@/admin/whitelist/page"
|
||||
import AuthGuard from "@/components/authGuard"
|
||||
import HomePage from "@/home"
|
||||
import ClientPage from "@/home/client"
|
||||
import HelpPage from "@/home/help"
|
||||
@@ -28,7 +32,19 @@ export const router = createBrowserRouter([
|
||||
},
|
||||
{
|
||||
path: "/admin",
|
||||
element: <AdminLayout />,
|
||||
children: [{ index: true, element: <Dashboard /> }],
|
||||
element: (
|
||||
<AuthGuard>
|
||||
<AdminLayout />
|
||||
</AuthGuard>
|
||||
),
|
||||
children: [
|
||||
{ index: true, element: <Dashboard /> },
|
||||
{ path: "channels", element: <Channels /> },
|
||||
{ path: "whitelist", element: <Whitelist /> },
|
||||
{ path: "funds", element: <Funds /> },
|
||||
{ path: "Channels", element: <Channels /> },
|
||||
{ path: "Channels", element: <Channels /> },
|
||||
{ path: "Channels", element: <Channels /> },
|
||||
],
|
||||
},
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user