agregar función para registrar inquilinos

This commit is contained in:
Eduardo Quiros 2022-07-16 01:48:36 -06:00
parent 6ee627229e
commit c2d3308812
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 20 additions and 0 deletions

View File

@ -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',
}
}
}