diff --git a/ui/src/components/ListaMedicos.jsx b/ui/src/components/ListaMedicos.jsx index 12a5a59..9d2e9dc 100644 --- a/ui/src/components/ListaMedicos.jsx +++ b/ui/src/components/ListaMedicos.jsx @@ -4,33 +4,10 @@ import { DeleteOutlined, } from '@ant-design/icons'; -import { Button, Table } from 'antd'; +import { Popconfirm, Button, Table } from 'antd'; import _service from '@netuno/service-client'; -const medicosColumns = [ - { - title: 'UID', - dataIndex: 'uid', - key: 'uid', - }, - { - title: 'Nome', - dataIndex: 'nome', - key: 'nome', - }, - { - title: 'CRM', - dataIndex: 'crm', - key: 'crm', - }, - { - title: 'Delete', - dataIndex: 'delete', - key: 'delete', - } -] - function ListaMedicos() { const [medicos, setMedicos] = useState([]); @@ -43,12 +20,6 @@ function ListaMedicos() { _service({ url: "/services/medicos", success: (response) => { - response.json.map(item => item.delete = -