- Remove nested routes for tabs

This commit is contained in:
Shemy Gan committed 2024-12-13 15:58:24 -05:00
1 parent 406fa6ed9f
commit c1dc04939e
2 files changed
+5 -21

No files matched your search

+3 -13
View File
@@ -144,23 +144,13 @@ function App() {
element={<ProtectedRoute Component={Incidents} />}
/>
<Route
path="status/general-settings"
path="status"
element={
<ProtectedRoute
Component={CreateStatus}
open="general-settings"
Component={Status}
/>
}
/>
<Route
path="status/contents"
element={
<ProtectedRoute
Component={CreateStatus}
open="contents"
/>
}
/>
/>
<Route
path="integrations"
+2 -8
View File
@@ -52,14 +52,8 @@ const menu = [
{ name: "Pagespeed", path: "pagespeed", icon: <PageSpeed /> },
{ name: "Infrastructure", path: "infrastructure", icon: <Integrations /> },
{ name: "Incidents", path: "incidents", icon: <Incidents /> },
{
name: "Status pages",
icon: <StatusPages />,
nested: [
{ name: "General Settings", path: "status/general-settings", icon: <Settings /> },
{ name: "Contents", path: "status/contents", icon: <Settings /> },
],
},
{ name: "Status pages", path: "status", icon: <StatusPages /> },
{ name: "Maintenance", path: "maintenance", icon: <Maintenance /> },
// { name: "Integrations", path: "integrations", icon: <Integrations /> },
{