mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-02-04 16:18:32 -06:00
- add routes to status page nested pages
This commit is contained in:
@@ -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} />}
|
||||
|
||||
@@ -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 /> },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user