From 5689f3053e751535c0c3feeabd48b34f7d0d7b70 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Sat, 20 Aug 2022 20:31:28 -0600 Subject: [PATCH] arreglar tipos de inputs --- web-ui/web-react/src/components/Inquilinos.js | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/web-ui/web-react/src/components/Inquilinos.js b/web-ui/web-react/src/components/Inquilinos.js index 2dae6d77..bf2c5b79 100644 --- a/web-ui/web-react/src/components/Inquilinos.js +++ b/web-ui/web-react/src/components/Inquilinos.js @@ -615,7 +615,7 @@ const Inquilinos = () => { - onInputChange(e, 'name')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.name === '' })} /> + onInputChange(e, 'name')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.name === '' })} /> {submitted && tenant.name === '' && Nombre es requerido.} @@ -627,9 +627,9 @@ const Inquilinos = () => { - onInputChange(e, 'last_name')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.last_name === '' })} /> + onInputChange(e, 'last_name')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.last_name === '' })} /> - {submitted && tenant.last_name === '' && Apellidos es requerido.} + {submitted && tenant.last_name === '' && Apellidos son requeridos.}
@@ -639,14 +639,13 @@ const Inquilinos = () => { - onInputChange(e, 'email')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.email === '' })} /> + onInputChange(e, 'email')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.email === '' })} />
- {submitted && tenant.email === '' && Correo electrónico - es requerido.} + {submitted && tenant.email === '' && Correo electrónico es requerido.}
- +
@@ -658,26 +657,26 @@ const Inquilinos = () => {
- +
- onInputChange(e, 'phone')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.phone === '' })} /> + onInputChange(e, 'phone')} type='tel' required autoFocus className={classNames({ 'p-invalid': submitted && tenant.phone === '' })} />
{submitted && tenant.phone === '' && Número de teléfono es requerido.}
- +
- + onInputChange(e, 'community_id')} required autoFocus className={classNames({ 'p-invalid': submitted && !communityId })} />
{submitted && !communityId && Comunidad es requerida.}