diff --git a/txclient/src/app/components/Home/Login/Login.tsx b/txclient/src/app/components/Home/Login/Login.tsx index 9858ad5..12110ab 100644 --- a/txclient/src/app/components/Home/Login/Login.tsx +++ b/txclient/src/app/components/Home/Login/Login.tsx @@ -44,6 +44,7 @@ export default function Login(props: LoginProps) { const [password, setPassword] = useState(""); const [verificationCode, setVerificationCode] = useState(""); const [checkReadTerms, setCheckReadTerms] = useState(false); + const [loginMethod, setLoginMethod] = useState<"google" | "password">("google"); const clientId = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID || ""; @@ -323,102 +324,132 @@ export default function Login(props: LoginProps) { )} {!verification && !recovery && !recoveryCode && ( -

Ingresar

- )} - { - setEmail(e.target.value); - }} - onKeyUp={(e) => { - if (!verification && !recovery && !recoveryCode) { - if (e.key === "Enter") { - document.getElementById("password")?.focus(); - } - } - }} - /> - {!recovery && ( - { - setPassword(e.target.value); - }} - onKeyUp={(e) => { - if (!verification && !recovery && !recoveryCode) { - if (e.key === "Enter") { - iniciarSesion(); - } - } - }} - /> + <> +

Ingresar

+
+

+ Elegí cómo querés acceder +

+ + +
+ )} - {(verification || recoveryCode) && ( - { - setVerificationCode(e.target.value); - }} - /> - )} - - {verification && ( - + -