fix(afluencia): dropdowns salarios + lo quiere para + redirect Mi día
- Rango salarial: input → select con 14 rangos (A-0 a M-100001) - Lo quiere para: input → select con 2 opciones (Vivir / Inversión) - Validación labels origen/desarrollo tolerante en backend (omitir si no existe) - Redirect a /hoy/ después de crear afluencia o completar alta cliente
This commit is contained in:
@@ -308,6 +308,15 @@ export default function AltaClientePage() {
|
||||
}
|
||||
}
|
||||
|
||||
// Redirigir a Mi día después de completar el alta
|
||||
useEffect(() => {
|
||||
if (!registro) return
|
||||
const timer = setTimeout(() => {
|
||||
window.location.href = '/hoy/'
|
||||
}, 2000)
|
||||
return () => clearTimeout(timer)
|
||||
}, [registro])
|
||||
|
||||
// Genera la liga pública y copia al portapapeles el texto listo para WhatsApp
|
||||
const generarLiga = async () => {
|
||||
setErrorLiga('')
|
||||
@@ -635,6 +644,11 @@ export default function AltaClientePage() {
|
||||
Alta registrada en el servidor: {registro}
|
||||
</p>
|
||||
)}
|
||||
{registro && (
|
||||
<p className="mb-6 text-xs text-[#64748B] dark:text-[#94A3B8]">
|
||||
Redirigiendo a Mi día en unos segundos…
|
||||
</p>
|
||||
)}
|
||||
{sinConexion && (
|
||||
<p
|
||||
role="alert"
|
||||
|
||||
Reference in New Issue
Block a user