diff --git a/devshell.toml b/devshell.toml index d7746d94..046ba4a0 100644 --- a/devshell.toml +++ b/devshell.toml @@ -6,4 +6,3 @@ help = "Per project developer environments" [[commands]] package = "nodejs" help = "Node.js" - diff --git a/web-ui/web-react/src/components/Inquilinos.js b/web-ui/web-react/src/components/Inquilinos.js index 8593afaf..812af9ae 100644 --- a/web-ui/web-react/src/components/Inquilinos.js +++ b/web-ui/web-react/src/components/Inquilinos.js @@ -45,6 +45,7 @@ const Inquilinos = () => { const [houseNumber, setHouseNumber] = useState([]) const [housesList, setHousesList] = useState([]) const [submitted, setSubmitted] = useState(false) + const [infoDialogVisible, setShowInfoDialog] = useState(false) const toast = useRef(null) const dt = useRef(null) const [cookies] = useCookies() @@ -93,7 +94,7 @@ const Inquilinos = () => { useEffect(() => { tenantsList() - }, [tenantsList]) + }, []) useEffect(() => { getCommunity() @@ -226,6 +227,17 @@ const Inquilinos = () => { setChangeStatusTenantDialog(true) } + const hideInfoDialog = () => { + setSubmitted(false); + setShowInfoDialog(false); + setTenant(emptyTenant); + } + + const infoTenant = (tenant) => { + setTenant(tenant); + setShowInfoDialog(true); + } + const actionsTenant = (rowData) => { let icono = '' let text = '' @@ -238,6 +250,11 @@ const Inquilinos = () => { } return (
+