Merge pull request #3284 from bluewave-labs/fix/routes

fix: routes
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-02-13 16:17:57 -08:00
commit 8719efab5d
3 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -3,4 +3,5 @@
.VSCodeCounter
*.sh
mongo
node_modules/
node_modules/
docs/architecture
+2 -2
View File
@@ -9,8 +9,8 @@ import { useTheme } from "@mui/material";
import { useTranslation } from "react-i18next";
interface NotFoundProps {
title: string;
desc: string;
title?: string;
desc?: string;
}
const NotFoundPage = ({ title, desc }: NotFoundProps) => {
@@ -3,6 +3,7 @@ import { ThemeProvider } from "@mui/material";
import { lightTheme, darkTheme } from "@/Utils/Theme/v2Theme";
import { useSelector } from "react-redux";
import type { RootState } from "@/store";
import { Navigate, Route, Routes as LibRoutes } from "react-router";
import RootLayout from "@/Components/v2/layout/RootLayout";
import NotFound from "@/Pages/NotFound";
@@ -59,7 +60,7 @@ import {
import CreateMonitor from "@/Pages/CreateMonitor";
const Routes = () => {
const mode = useSelector((state) => state.ui.mode);
const mode = useSelector((state: RootState) => state.ui.mode);
const v2theme = mode === "light" ? lightTheme : darkTheme;
return (
<LibRoutes>
@@ -390,12 +391,11 @@ const Routes = () => {
/>
<Route
exact
path="/register/:token"
element={
<>
<ThemeProvider theme={v2theme}>
<AuthRegister superAdminExists={true} />
<AuthRegister />
</ThemeProvider>
</>
}