add onInputChange to inputs

This commit is contained in:
Eduardo Quiros 2022-08-20 04:40:07 -06:00
parent 435af70439
commit 2a325d4e2e
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 2 additions and 1 deletions

View File

@ -614,6 +614,7 @@ const Inquilinos = () => {
type='email' type='email'
className='form-control' className='form-control'
id='correo_electronico' id='correo_electronico'
onChange={(e) => onInputChange(e, 'email')}
/> />
</div> </div>
<div className='field col-12 md:col-6'> <div className='field col-12 md:col-6'>
@ -623,7 +624,7 @@ const Inquilinos = () => {
id='numero_vivienda' id='numero_vivienda'
value={communityId} value={communityId}
options={cList} options={cList}
onChange={(e) => setCommunityId(e.value)} onChange={(e) => onInputChange(e, 'community_id')}
/> />
</div> </div>
<Button label='Registrar' onClick={saveTenant} /> <Button label='Registrar' onClick={saveTenant} />