katoikia-app/web-ui/web-react/src/components/AreasComunes.js

58 lines
1.9 KiB
JavaScript
Raw Normal View History

2022-08-01 05:52:01 +00:00
import React, { useEffect, useState, useRef } from 'react';
import { InputText } from 'primereact/inputtext';
2022-08-01 05:49:05 +00:00
import { Button } from 'primereact/button';
import { Dropdown } from 'primereact/dropdown';
2022-08-01 05:52:01 +00:00
import { DataTable } from 'primereact/datatable';
import { Column } from 'primereact/column';
import { Toast } from 'primereact/toast';
import { Dialog } from 'primereact/dialog';
import { Toolbar } from 'primereact/toolbar';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faHome, faUserAlt } from '@fortawesome/free-solid-svg-icons';
import { faPhoneAlt } from '@fortawesome/free-solid-svg-icons';
import { faAt } from '@fortawesome/free-solid-svg-icons';
import { faIdCardAlt } from '@fortawesome/free-solid-svg-icons';
import { faEllipsis } from '@fortawesome/free-solid-svg-icons';
import { faHomeAlt } from '@fortawesome/free-solid-svg-icons';
import classNames from 'classnames';
2022-08-01 05:58:12 +00:00
import { useCookies } from "react-cookie";
2022-08-01 05:49:05 +00:00
const AreasComunes = () => {
2022-08-01 05:52:01 +00:00
let emptyCommonArea = {
_id: null,
dni: '',
name: '',
last_name: '',
email: '',
phone: '',
password: '',
confirmPassword: '',
community_id: '',
community_name: '',
user_type: '2',
date_entry: new Date(),
status: '1'
};
2022-08-01 05:53:21 +00:00
const [commonAreasList, setCommonAreasList] = useState([]);
2022-08-01 05:52:01 +00:00
const [commonArea, setCommonArea] = useState(emptyCommonArea);
2022-08-01 05:53:21 +00:00
const [selectedCommonAreas, setSelectedCommonAreas] = useState(null);
const [deleteCommonAreaDialog, setDeleteCommonAreaDialog] = useState(false);
const [deleteCommonAreasDialog, setDeleteCommonAreasDialog] = useState(false);
2022-08-01 05:52:01 +00:00
const [submitted, setSubmitted] = useState(false);
const toast = useRef(null);
const dt = useRef(null);
2022-08-01 05:58:12 +00:00
const [cookies, setCookie] = useCookies();
async function getCommonAreas() {
}
2022-08-01 05:49:05 +00:00
};
export default React.memo(AreasComunes);