From 6cd70b81454340073e71ff881670c180f8980137 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 9 Sep 2023 17:59:54 +0200 Subject: [PATCH] Implemented the RegisterTab in the Login.jsx --- src/states/Login/Login.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/states/Login/Login.jsx b/src/states/Login/Login.jsx index f455569..7d300dc 100644 --- a/src/states/Login/Login.jsx +++ b/src/states/Login/Login.jsx @@ -2,21 +2,24 @@ 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"; +import RegisterTab from "@/states/Login/tabs/RegisterTab"; export const Login = () => { const [currentPage, setCurrentPage] = useState(0); + const [showTabs, setShowTabs] = useState(true); + return ( - setCurrentPage(v)}> + {showTabs && setCurrentPage(v)}> - + } {currentPage === 0 && } - {currentPage === 1 &&
Register
} + {currentPage === 1 && }
) } \ No newline at end of file