- add routes to status page nested pages

This commit is contained in:
Shemy Gan
2024-12-04 13:34:38 -05:00
parent 0759b16f9e
commit cc2187d51e
2 changed files with 24 additions and 8 deletions

View File

@@ -139,20 +139,29 @@ function App() {
path="infrastructure/:monitorId"
element={<ProtectedRoute Component={InfrastructureDetailsWithAdminProp} />}
/>
<Route
path="incidents/:monitorId?"
element={<ProtectedRoute Component={Incidents} />}
/>
<Route
path="status"
element={<ProtectedRoute Component={Status} />}
path="status/general-settings"
element={
<ProtectedRoute
Component={CreateStatus}
open="general-settings"
/>
}
/>
<Route
path="status/create"
element={<ProtectedRoute Component={CreateStatus} />}
/>
path="status/contents"
element={
<ProtectedRoute
Component={CreateStatus}
open="contents"
/>
}
/>
<Route
path="integrations"
element={<ProtectedRoute Component={Integrations} />}

View File

@@ -52,7 +52,14 @@ const menu = [
{ name: "Pagespeed", path: "pagespeed", icon: <PageSpeed /> },
{ name: "Infrastructure", path: "infrastructure", icon: <Integrations /> },
{ name: "Incidents", path: "incidents", icon: <Incidents /> },
{ name: "Status pages", path: "status", icon: <StatusPages /> },
{
name: "Status pages",
icon: <StatusPages />,
nested: [
{ name: "General Settings", path: "status/general-settings", icon: <UserSvg /> },
{ name: "Contents", path: "status/contents", icon: <LockSvg /> },
],
},
{ name: "Maintenance", path: "maintenance", icon: <Maintenance /> },
// { name: "Integrations", path: "integrations", icon: <Integrations /> },
{