diff --git a/src/Pages/Users/ListUsers.tsx b/src/Pages/Users/ListUsers.tsx index 51254bf..97ad2bd 100644 --- a/src/Pages/Users/ListUsers.tsx +++ b/src/Pages/Users/ListUsers.tsx @@ -1,13 +1,14 @@ import { Button } from "primereact/button"; import { Column } from "primereact/column"; import { DataTable } from "primereact/datatable"; -import { useContext } from "react"; +import { useContext, useState } from "react"; import { useNavigate } from "react-router-dom"; import UsersProvider, { UsersContext } from "../../Context/Users/context"; -import { UsersTypes } from "../../Context/Users/type"; +import { User, UsersTypes } from "../../Context/Users/type"; import { Container, Padding } from "../../Styles/styles"; import { ROLE } from "../../Controller/controllerGlobal"; import Loading from "../../Components/Loading"; +import { ConfirmDialog } from "primereact/confirmdialog"; const ListUsers = () => { return ( @@ -20,6 +21,8 @@ const ListUsers = () => { const ListUsersPage = () => { const props = useContext(UsersContext) as UsersTypes; const history = useNavigate(); + + const [visible, setVisible] = useState(false) // const actionBodyTemplate = (rowData: any) => { // return ( @@ -52,6 +55,12 @@ const ListUsersPage = () => { ); }; + const ActionsUserBody = (rowData: any) => { + return ( +