- 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" path="infrastructure/:monitorId"
element={<ProtectedRoute Component={InfrastructureDetailsWithAdminProp} />} element={<ProtectedRoute Component={InfrastructureDetailsWithAdminProp} />}
/> />
<Route <Route
path="incidents/:monitorId?" path="incidents/:monitorId?"
element={<ProtectedRoute Component={Incidents} />} element={<ProtectedRoute Component={Incidents} />}
/> />
<Route <Route
path="status" path="status/general-settings"
element={<ProtectedRoute Component={Status} />} element={
<ProtectedRoute
Component={CreateStatus}
open="general-settings"
/>
}
/> />
<Route <Route
path="status/create" path="status/contents"
element={<ProtectedRoute Component={CreateStatus} />} element={
/> <ProtectedRoute
Component={CreateStatus}
open="contents"
/>
}
/>
<Route <Route
path="integrations" path="integrations"
element={<ProtectedRoute Component={Integrations} />} element={<ProtectedRoute Component={Integrations} />}
+8 -1
View File
@@ -52,7 +52,14 @@ const menu = [
{ name: "Pagespeed", path: "pagespeed", icon: <PageSpeed /> }, { name: "Pagespeed", path: "pagespeed", icon: <PageSpeed /> },
{ name: "Infrastructure", path: "infrastructure", icon: <Integrations /> }, { name: "Infrastructure", path: "infrastructure", icon: <Integrations /> },
{ name: "Incidents", path: "incidents", icon: <Incidents /> }, { 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: "Maintenance", path: "maintenance", icon: <Maintenance /> },
// { name: "Integrations", path: "integrations", icon: <Integrations /> }, // { name: "Integrations", path: "integrations", icon: <Integrations /> },
{ {