- Remove nested routes for tabs
This commit is contained in:
1 parent
406fa6ed9f
commit
c1dc04939e
2 files changed
+4
-20
No files matched your search
+2
-12
@@ -144,20 +144,10 @@ function App() {
|
|||||||
element={<ProtectedRoute Component={Incidents} />}
|
element={<ProtectedRoute Component={Incidents} />}
|
||||||
/>
|
/>
|
||||||
<Route
|
<Route
|
||||||
path="status/general-settings"
|
path="status"
|
||||||
element={
|
element={
|
||||||
<ProtectedRoute
|
<ProtectedRoute
|
||||||
Component={CreateStatus}
|
Component={Status}
|
||||||
open="general-settings"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="status/contents"
|
|
||||||
element={
|
|
||||||
<ProtectedRoute
|
|
||||||
Component={CreateStatus}
|
|
||||||
open="contents"
|
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -52,14 +52,8 @@ 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",
|
{ name: "Status pages", path: "status", icon: <StatusPages /> },
|
||||||
icon: <StatusPages />,
|
|
||||||
nested: [
|
|
||||||
{ name: "General Settings", path: "status/general-settings", icon: <Settings /> },
|
|
||||||
{ name: "Contents", path: "status/contents", icon: <Settings /> },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{ name: "Maintenance", path: "maintenance", icon: <Maintenance /> },
|
{ name: "Maintenance", path: "maintenance", icon: <Maintenance /> },
|
||||||
// { name: "Integrations", path: "integrations", icon: <Integrations /> },
|
// { name: "Integrations", path: "integrations", icon: <Integrations /> },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user