mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-04 20:50:07 +00:00
implement notification page (#8)
This commit is contained in:
13
src/main.tsx
13
src/main.tsx
@@ -20,7 +20,10 @@ import NATPage from './routes/nat';
|
||||
import ServerGroupPage from './routes/server-group';
|
||||
import NotificationGroupPage from './routes/notification-group';
|
||||
import { ServerProvider } from './hooks/useServer';
|
||||
import { NotificationProvider } from './hooks/useNotfication';
|
||||
import CronPage from './routes/cron';
|
||||
import NotificationPage from './routes/notification';
|
||||
import AlertRulePage from './routes/alert-rule';
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
@@ -44,6 +47,14 @@ const router = createBrowserRouter([
|
||||
path: "/dashboard/cron",
|
||||
element: <CronPage />,
|
||||
},
|
||||
{
|
||||
path: "/dashboard/notification",
|
||||
element: <NotificationProvider withNotifierGroup><NotificationPage /></NotificationProvider>,
|
||||
},
|
||||
{
|
||||
path: "/dashboard/alert-rule",
|
||||
element: <AlertRulePage />,
|
||||
},
|
||||
{
|
||||
path: "/dashboard/ddns",
|
||||
element: <DDNSPage />,
|
||||
@@ -58,7 +69,7 @@ const router = createBrowserRouter([
|
||||
},
|
||||
{
|
||||
path: "/dashboard/notification-group",
|
||||
element: <NotificationGroupPage />,
|
||||
element: <NotificationProvider withNotifier><NotificationGroupPage /></NotificationProvider>,
|
||||
},
|
||||
{
|
||||
path: "/dashboard/terminal/:id",
|
||||
|
||||
Reference in New Issue
Block a user