From 74fb2d17c4bd0e11f2f831a36e316dc5da53a0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Mon, 6 Jul 2026 08:46:44 -0600 Subject: [PATCH] =?UTF-8?q?feat(checada):=20el=20link=20"Reg=C3=ADstrate"?= =?UTF-8?q?=20abre=20becario.html=20en=20la=20pesta=C3=B1a=20de=20registro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit checada.html pasa ?registro=1; becario.html lee el parámetro y arranca el componente Acceso en modo "registro". Sin el parámetro sigue abriendo en "Entrar". Co-Authored-By: Claude Fable 5 --- frontend/becario.html | 4 +++- frontend/checada.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/becario.html b/frontend/becario.html index e708c4e..6c111f7 100644 --- a/frontend/becario.html +++ b/frontend/becario.html @@ -75,7 +75,9 @@ const ErrorBar = ({ error, onClose }) => !error ? null : ( // ═══════════════ Login / Registro ═══════════════ function Acceso({ onEntra }) { - const [modo, setModo] = useState("login"); + const [modo, setModo] = useState(() => + new URLSearchParams(window.location.search).get("registro") === "1" ? "registro" : "login" + ); const [f, setF] = useState({ telefono: "", password: "", nombre: "" }); const [error, setError] = useState(null); const [busy, setBusy] = useState(false); diff --git a/frontend/checada.html b/frontend/checada.html index c8eadf4..56375f2 100644 --- a/frontend/checada.html +++ b/frontend/checada.html @@ -94,7 +94,7 @@ function LoginInline({ onEntra }) { {busy ? "…" : "Entrar"}

- ¿No tienes cuenta? Regístrate + ¿No tienes cuenta? Regístrate

);