diff --git a/dashboard/src/states/Login/Login.jsx b/dashboard/src/states/Login/Login.jsx index 1b8902c..7503ec7 100644 --- a/dashboard/src/states/Login/Login.jsx +++ b/dashboard/src/states/Login/Login.jsx @@ -1,11 +1,13 @@ import {Stack, Tab, Tabs} from "@mui/material"; import Logo from "@/states/Login/components/Logo"; -import {useState} from "react"; +import {useContext, useState} from "react"; import LoginTab from "@/states/Login/tabs/LoginTab"; import RegisterTab from "@/states/Login/tabs/RegisterTab"; +import {InfoContext} from "@contexts/Info"; export const Login = () => { const [currentPage, setCurrentPage] = useState(0); + const {info} = useContext(InfoContext); const [showTabs, setShowTabs] = useState(true); @@ -13,7 +15,7 @@ export const Login = () => { - {showTabs && setCurrentPage(v)}> + {info.signupEnabled && showTabs && setCurrentPage(v)}> }