From 18fa523fbe967dd553cdfaeb45bcf10aa7ff07de Mon Sep 17 00:00:00 2001 From: Horacio Daniel Ros Date: Wed, 19 Aug 2026 11:58:05 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20agregar=20opciones=20de=20inicio=20de?= =?UTF-8?q?=20sesi=C3=B3n=20y=20registro=20con=20Google=20y=20manual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/components/Home/Login/Login.tsx | 318 ++++++++++++------ txclient/src/app/landing/signup/page.tsx | 286 +++++++++++----- 2 files changed, 430 insertions(+), 174 deletions(-) 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 && ( - + -