Add Schedule & Incident menu sidebar

This commit is contained in:
Tola Leng
2025-05-23 18:48:03 +08:00
parent 7c382ddb7a
commit 4a6cd92661
+9
View File
@@ -16,6 +16,7 @@ import Settings from "./pages/Settings";
import Profile from "./pages/Profile";
import NotFound from "./pages/NotFound";
import SslDomain from "./pages/SslDomain";
import ScheduleIncident from "./pages/ScheduleIncident";
// Create a Protected route component
const ProtectedRoute = ({ children }: { children: React.ReactNode }) => {
@@ -102,6 +103,14 @@ const App = () => {
</ProtectedRoute>
}
/>
<Route
path="/schedule-incident"
element={
<ProtectedRoute>
<ScheduleIncident />
</ProtectedRoute>
}
/>
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
<Route path="*" element={<NotFound />} />
</Routes>