Created the Login.jsx
This commit is contained in:
parent
161e0b7377
commit
ad69590e64
22
src/states/Login/Login.jsx
Normal file
22
src/states/Login/Login.jsx
Normal file
@ -0,0 +1,22 @@
|
||||
import {Stack, Tab, Tabs} from "@mui/material";
|
||||
import Logo from "@/states/Login/components/Logo";
|
||||
import {useState} from "react";
|
||||
import LoginTab from "@/states/Login/tabs/LoginTab";
|
||||
|
||||
export const Login = () => {
|
||||
const [currentPage, setCurrentPage] = useState(0);
|
||||
|
||||
return (
|
||||
<Stack justifyContent="center" alignItems="center" sx={{height: {xs: "100%",sm: "100vh"}}} gap={2}>
|
||||
<Logo/>
|
||||
|
||||
<Tabs value={currentPage} onChange={(e, v) => setCurrentPage(v)}>
|
||||
<Tab label="Anmelden"/>
|
||||
<Tab label="Registrieren"/>
|
||||
</Tabs>
|
||||
|
||||
{currentPage === 0 && <LoginTab />}
|
||||
{currentPage === 1 && <div>Register</div>}
|
||||
</Stack>
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user