Auth navigation
This commit is contained in:
20
src/pages/Home.tsx
Normal file
20
src/pages/Home.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
// import React from "react";
|
||||
import { Route, Routes } from "react-router-dom";
|
||||
import Login from "../views/home/auth/Login";
|
||||
import Register from "../views/home/auth/Register";
|
||||
|
||||
const Home = () => {
|
||||
return (
|
||||
<div className="h-full w-full bg-default-100 flex items-center justify-center">
|
||||
<div className=" bg-layout-background w-[25rem] h-[34.375rem] rounded-[15px] box-border p-[25px] relative">
|
||||
<Routes>
|
||||
<Route path="login" element={<Login/>}/>
|
||||
<Route path="register" element={<Register/>}/>
|
||||
<Route path="*" element={"123"}/>
|
||||
</Routes>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Home;
|
||||
Reference in New Issue
Block a user