diff --git a/client/src/Components/v2/Layouts/RootLayout.tsx b/client/src/Components/v2/Layouts/RootLayout.tsx
new file mode 100644
index 000000000..5f78600f4
--- /dev/null
+++ b/client/src/Components/v2/Layouts/RootLayout.tsx
@@ -0,0 +1,50 @@
+import { useState, useEffect } from "react";
+import useMediaQuery from "@mui/material/useMediaQuery";
+import { useTheme } from "@emotion/react";
+
+import { Outlet } from "react-router";
+import Stack from "@mui/material/Stack";
+import Box from "@mui/material/Box";
+
+const COLLAPSED_WIDTH = 50;
+const EXPANDED_WIDTH = 250;
+
+const SideBar = () => {
+ const theme = useTheme();
+ const isSmall = useMediaQuery(theme.breakpoints.down("md"));
+
+ const [collapsed, setCollapsed] = useState(false);
+ useEffect(() => {
+ setCollapsed(isSmall);
+ }, [isSmall]);
+ return (
+
+ setCollapsed(!collapsed)}
+ >
+ Sidebar Content
+
+
+ );
+};
+
+const RootLayout = ({ mode = "light" }) => {
+ return (
+
+
+
+
+ );
+};
+
+export default RootLayout;
diff --git a/client/src/Routes/index.jsx b/client/src/Routes/index.jsx
index 39959bc1c..2e4fd9c50 100644
--- a/client/src/Routes/index.jsx
+++ b/client/src/Routes/index.jsx
@@ -1,14 +1,11 @@
import { useSelector } from "react-redux";
import { lightTheme, darkTheme } from "@/Utils/Theme/v2/theme";
import { Navigate, Route, Routes as LibRoutes } from "react-router";
-import { ThemeProvider } from "@emotion/react";
import HomeLayout from "../Components/Layouts/HomeLayout";
import NotFound from "../Pages/v1/NotFound";
// Auth
import AuthLogin from "../Pages/v1/Auth/Login";
-import AuthLoginV2 from "@/Pages/v2/Auth/Login";
import AuthRegister from "../Pages/v1/Auth/Register/";
-import AuthRegisterV2 from "@/Pages/v2/Auth/Register";
import AuthForgotPassword from "../Pages/v1/Auth/ForgotPassword";
import AuthCheckEmail from "../Pages/v1/Auth/CheckEmail";
import AuthSetNewPassword from "../Pages/v1/Auth/SetNewPassword";
@@ -57,12 +54,18 @@ import withAdminCheck from "../Components/HOC/withAdminCheck";
import BulkImport from "../Pages/v1/Uptime/BulkImport";
import Logs from "../Pages/v1/Logs";
+import V2Routes from "@/Routes/v2router";
+
const Routes = () => {
const mode = useSelector((state) => state.ui.mode);
- const v2Theme = mode === "light" ? lightTheme : darkTheme;
const AdminCheckedRegister = withAdminCheck(AuthRegister);
return (
+ }
+ />
+
{
path="/login"
element={}
/>
-
-
-
- }
- />
}
/>
-
-
-
- }
- />
{
+ const v2Theme = mode === "light" ? lightTheme : darkTheme;
+
+ return (
+
+
+ }
+ />
+ }
+ />
+ }
+ >
+ Test Page}
+ />
+
+
+
+ );
+};
+
+export default V2Routes;