move v2 routes to v2 router
This commit is contained in:
1 parent
b7db3f96ba
commit
ce0aaa7ac7
2 files changed
+36
-20
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import { Routes, Route } from "react-router";
|
||||
import { ThemeProvider } from "@emotion/react";
|
||||
import { lightTheme, darkTheme } from "@/Utils/Theme/v2/theme";
|
||||
|
||||
// v2 pages
|
||||
import AuthLoginV2 from "@/Pages/v2/Auth/Login";
|
||||
import AuthRegisterV2 from "@/Pages/v2/Auth/Register";
|
||||
// import other v2 pages here...
|
||||
|
||||
const V2Routes = ({ mode = "light" }) => {
|
||||
const v2Theme = mode === "light" ? lightTheme : darkTheme;
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={v2Theme}>
|
||||
<Routes>
|
||||
<Route
|
||||
path="login"
|
||||
element={<AuthLoginV2 />}
|
||||
/>
|
||||
<Route
|
||||
path="register"
|
||||
element={<AuthRegisterV2 />}
|
||||
/>
|
||||
</Routes>
|
||||
</ThemeProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default V2Routes;
|
||||
Reference in new issue
Block a user