From cc2187d51ef6533aea6482b2f50dd23ed32e287c Mon Sep 17 00:00:00 2001 From: Shemy Gan Date: Wed, 4 Dec 2024 13:34:38 -0500 Subject: [PATCH] - add routes to status page nested pages --- Client/src/App.jsx | 23 ++++++++++++++++------- Client/src/Components/Sidebar/index.jsx | 9 ++++++++- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/Client/src/App.jsx b/Client/src/App.jsx index efab418ec..a9739b33a 100644 --- a/Client/src/App.jsx +++ b/Client/src/App.jsx @@ -139,20 +139,29 @@ function App() { path="infrastructure/:monitorId" element={} /> - } /> - } + path="status/general-settings" + element={ + + } /> } - /> + path="status/contents" + element={ + + } + /> + } diff --git a/Client/src/Components/Sidebar/index.jsx b/Client/src/Components/Sidebar/index.jsx index 6b8321695..ee7ef444e 100644 --- a/Client/src/Components/Sidebar/index.jsx +++ b/Client/src/Components/Sidebar/index.jsx @@ -52,7 +52,14 @@ const menu = [ { name: "Pagespeed", path: "pagespeed", icon: }, { name: "Infrastructure", path: "infrastructure", icon: }, { name: "Incidents", path: "incidents", icon: }, - { name: "Status pages", path: "status", icon: }, + { + name: "Status pages", + icon: , + nested: [ + { name: "General Settings", path: "status/general-settings", icon: }, + { name: "Contents", path: "status/contents", icon: }, + ], + }, { name: "Maintenance", path: "maintenance", icon: }, // { name: "Integrations", path: "integrations", icon: }, {