add name as parameter for onInputChange
This commit is contained in:
parent
2a325d4e2e
commit
3cb8e47628
|
@ -419,7 +419,7 @@ const Inquilinos = () => {
|
|||
)
|
||||
}
|
||||
|
||||
const onInputChange = (e) => {
|
||||
const onInputChange = (e, name) => {
|
||||
const value = (e.target && e.target.value) || ''
|
||||
let _tenant = { ...tenant }
|
||||
_tenant[`${name}`] = value
|
||||
|
|
Loading…
Reference in New Issue