- add routes to status page nested pages

This commit is contained in:
Shemy Gan committed 2024-12-06 10:16:53 -05:00
1 parent 0759b16f9e
commit cc2187d51e
2 files changed
+24 -8

No files matched your search

+16 -7
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} />}
+8 -1
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 /> },
{