mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-05 05:00:06 +00:00
implement install-commands button (#10)
* fix: type conversion * implement install-commands button
This commit is contained in:
11
src/main.tsx
11
src/main.tsx
@@ -22,6 +22,7 @@ import ServerGroupPage from './routes/server-group';
|
||||
import NotificationGroupPage from './routes/notification-group';
|
||||
import { ServerProvider } from './hooks/useServer';
|
||||
import { NotificationProvider } from './hooks/useNotfication';
|
||||
import { ConfigProvider } from './hooks/useConfig';
|
||||
import CronPage from './routes/cron';
|
||||
import NotificationPage from './routes/notification';
|
||||
import AlertRulePage from './routes/alert-rule';
|
||||
@@ -33,7 +34,15 @@ import ProfilePage from './routes/profile';
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/dashboard",
|
||||
element: <AuthProvider><ProtectedRoute><Root /></ProtectedRoute></AuthProvider>,
|
||||
element: (
|
||||
<AuthProvider>
|
||||
<ProtectedRoute>
|
||||
<ConfigProvider>
|
||||
<Root />
|
||||
</ConfigProvider>
|
||||
</ProtectedRoute>
|
||||
</AuthProvider>
|
||||
),
|
||||
errorElement: <ErrorPage />,
|
||||
children: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user