agregar función para registrar inquilinos
This commit is contained in:
parent
6ee627229e
commit
c2d3308812
|
@ -0,0 +1,20 @@
|
|||
import { React, useEffect, useState } from 'react'
|
||||
import { InputText } from 'primereact/inputtext'
|
||||
import { Button } from 'primereact/button'
|
||||
import { DataTable } from 'primereact/datatable'
|
||||
import { Column } from 'primereact/column'
|
||||
|
||||
const Inquilinos = () => {
|
||||
function registrarInquilino() {
|
||||
let data = {
|
||||
dni: document.getElementById('identificacion').value,
|
||||
name: document.getElementById('nombre').value,
|
||||
last_name: document.getElementById('apellidos').value,
|
||||
email: document.getElementById('correo_electronico').value,
|
||||
phone: document.getElementById('telefono').value,
|
||||
password: document.getElementById('correo_electronico').value,
|
||||
user_type: '1', //1 es admin
|
||||
status: '1',
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue