diff --git a/Client/src/App.jsx b/Client/src/App.jsx index 151512701..b7a01c9d9 100644 --- a/Client/src/App.jsx +++ b/Client/src/App.jsx @@ -10,6 +10,7 @@ import Register from "./Pages/Auth/Register/Register"; import Account from "./Pages/Account"; import Monitors from "./Pages/Monitors/Home"; import CreateMonitor from "./Pages/Monitors/CreateMonitor"; +import CreateInfrastructureMonitor from "./Pages/Infrastructure/CreateMonitor"; import Incidents from "./Pages/Incidents"; import Status from "./Pages/Status"; import Integrations from "./Pages/Integrations"; @@ -127,7 +128,10 @@ function App() { path="infrastructure" element={} /> - + } + /> } diff --git a/Client/src/Components/Sidebar/index.jsx b/Client/src/Components/Sidebar/index.jsx index 2e91289f8..e6507c6e4 100644 --- a/Client/src/Components/Sidebar/index.jsx +++ b/Client/src/Components/Sidebar/index.jsx @@ -90,6 +90,7 @@ const URL_MAP = { const PATH_MAP = { monitors: "Dashboard", pagespeed: "Dashboard", + infrastructure: "Dashboard", account: "Account", settings: "Other", }; diff --git a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/CustomThreshold/index.jsx b/Client/src/Pages/Infrastructure/CreateMonitor/CustomThreshold/index.jsx similarity index 100% rename from Client/src/Pages/InfrastructureMonitors/CreateMonitor/CustomThreshold/index.jsx rename to Client/src/Pages/Infrastructure/CreateMonitor/CustomThreshold/index.jsx diff --git a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx b/Client/src/Pages/Infrastructure/CreateMonitor/index.jsx similarity index 98% rename from Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx rename to Client/src/Pages/Infrastructure/CreateMonitor/index.jsx index 56b37662a..6a7081d9c 100644 --- a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx +++ b/Client/src/Pages/Infrastructure/CreateMonitor/index.jsx @@ -177,7 +177,7 @@ const CreateInfrastructureMonitor = () => { ); if (action.meta.requestStatus === "fulfilled") { createToast({ body: "Infrastructure monitor created successfully!" }); - navigate("/infrastructure-monitors/create"); + navigate("/infrastructure"); } else { createToast({ body: "Failed to create monitor." }); } @@ -217,8 +217,8 @@ const CreateInfrastructureMonitor = () => {