eliminar boton exportar csv

This commit is contained in:
Mariela 2022-09-01 16:05:30 -06:00
parent a44fe8caa2
commit d674fc7a5a
9 changed files with 32 additions and 36 deletions

View File

@ -601,7 +601,7 @@ const AdministradoresComunidad = () => {
<div className="col-12"> <div className="col-12">
<Toast ref={toast} /> <Toast ref={toast} />
<div className="card"> <div className="card">
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar> <Toolbar className="mb-4" left={leftToolbarTemplate}></Toolbar>
<DataTable ref={dt} value={listaAdmins} dataKey="_id" paginator rows={10} selection={selectedAdminsCommunities} onSelectionChange={(e) => setSelectedAdminsCommunities(e.value)} <DataTable ref={dt} value={listaAdmins} dataKey="_id" paginator rows={10} selection={selectedAdminsCommunities} onSelectionChange={(e) => setSelectedAdminsCommunities(e.value)}
scrollable scrollHeight="800px" scrollDirection="both" header={header} scrollable scrollHeight="800px" scrollDirection="both" header={header}
rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3" rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3"

View File

@ -626,7 +626,6 @@ const AdministradoresSistema = () => {
<Toolbar <Toolbar
className="mb-4" className="mb-4"
left={leftToolbarTemplate} left={leftToolbarTemplate}
right={rightToolbarTemplate}
></Toolbar> ></Toolbar>
<DataTable <DataTable
ref={dt} ref={dt}

View File

@ -623,7 +623,7 @@ const AreasComunes = () => {
<div className="col-12"> <div className="col-12">
<Toast ref={toast} /> <Toast ref={toast} />
<div className="card"> <div className="card">
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar> <Toolbar className="mb-4" left={leftToolbarTemplate} ></Toolbar>
<DataTable ref={dt} value={commonAreaList} dataKey="_id" paginator rows={10} selection={selectedCommonAreas} onSelectionChange={(e) => setSelectedCommonAreas(e.value)} <DataTable ref={dt} value={commonAreaList} dataKey="_id" paginator rows={10} selection={selectedCommonAreas} onSelectionChange={(e) => setSelectedCommonAreas(e.value)}
scrollable scrollHeight="700px" scrollDirection="both" header={header} scrollable scrollHeight="700px" scrollDirection="both" header={header}
rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3" rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3"

View File

@ -305,6 +305,7 @@ const Communities = () => {
setCommunity(emptyCommunity); setCommunity(emptyCommunity);
}) })
.catch((err) => console.log('Ocurrió un error con el fetch', err)); .catch((err) => console.log('Ocurrió un error con el fetch', err));
}
} else { } else {
setSubmitted(true); setSubmitted(true);
} }
@ -814,7 +815,6 @@ const Communities = () => {
<Toolbar <Toolbar
className="mb-4" className="mb-4"
left={leftToolbarTemplate} left={leftToolbarTemplate}
right={rightToolbarTemplate}
></Toolbar> ></Toolbar>
<DataTable <DataTable
ref={dt} ref={dt}

View File

@ -494,7 +494,7 @@ const GuardasSeguridad = () => {
<div className="col-12"> <div className="col-12">
<Toast ref={toast} /> <Toast ref={toast} />
<div className="card"> <div className="card">
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar> <Toolbar className="mb-4" left={leftToolbarTemplate}></Toolbar>
<DataTable ref={dt} value={listaGuardas} dataKey="_id" paginator rows={5} selection={selectedGuardas} onSelectionChange={(e) => setSelectedGuardas(e.value)} <DataTable ref={dt} value={listaGuardas} dataKey="_id" paginator rows={5} selection={selectedGuardas} onSelectionChange={(e) => setSelectedGuardas(e.value)}
responsiveLayout="scroll" header={header} responsiveLayout="scroll" header={header}
rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3" rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3"

View File

@ -649,7 +649,6 @@ const Inquilinos = () => {
<Toolbar <Toolbar
className='mb-4' className='mb-4'
left={leftToolbarTemplate} left={leftToolbarTemplate}
right={rightToolbarTemplate}
></Toolbar> ></Toolbar>
<DataTable <DataTable
ref={dt} ref={dt}

View File

@ -149,7 +149,6 @@ const InvitadosComunidad = () => {
<Toolbar <Toolbar
className="mb-4" className="mb-4"
left={leftToolbarTemplate} left={leftToolbarTemplate}
right={rightToolbarTemplate}
/> />
<DataTable <DataTable
ref={tableRef} ref={tableRef}

View File

@ -260,7 +260,7 @@ const RegistroComunicado = () => {
{comunicado && <span>¿Está seguro que desea eliminar el aviso "<b>{comunicado.post}</b>"?</span>} {comunicado && <span>¿Está seguro que desea eliminar el aviso "<b>{comunicado.post}</b>"?</span>}
</div> </div>
</Dialog> </Dialog>
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar> <Toolbar className="mb-4" left={leftToolbarTemplate} ></Toolbar>
<DataTable ref={dt} value={comunicados} dataKey="_id" paginator rows={5} <DataTable ref={dt} value={comunicados} dataKey="_id" paginator rows={5}
scrollable scrollHeight="400px" scrollDirection="both" header={header} scrollable scrollHeight="400px" scrollDirection="both" header={header}
rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3" rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3"

View File

@ -578,7 +578,6 @@ const Reservations = () => {
<Toolbar <Toolbar
className="mb-4" className="mb-4"
left={leftToolbarTemplate} left={leftToolbarTemplate}
right={rightToolbarTemplate}
></Toolbar> ></Toolbar>
<DataTable <DataTable
ref={dt} ref={dt}