Update route to pass monitor ID to details component

This commit is contained in:
Alex Holliday committed 2024-07-10 09:59:48 -07:00
1 parent 1ba37a7ec9
commit 342d426da0
2 files changed
+14 -6

No files matched your search

+5 -5
View File
@@ -21,7 +21,6 @@ import ProtectedRoute from "./Components/ProtectedRoute";
import Details from "./Pages/Details";
import Maintenance from "./Pages/Maintenance";
function App() {
return (
<>
@@ -40,14 +39,15 @@ function App() {
path="/monitors/create"
element={<ProtectedRoute Component={CreateNewMonitor} />}
/>
<Route
path="/monitors/:monitorId/"
element={<ProtectedRoute Component={Details} />}
/>
<Route
path="incidents"
element={<ProtectedRoute Component={Incidents} />}
/>
<Route
path="details"
element={<ProtectedRoute Component={Details} />}
/>
<Route
path="status"
element={<ProtectedRoute Component={Status} />}