From f3d22c8afed5a2db171b41601a0aaea7058cf2ab Mon Sep 17 00:00:00 2001 From: Henrique-Sousa <29417378+Henrique-Sousa@users.noreply.github.com> Date: Fri, 3 Apr 2026 17:11:02 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20adiciona=20um=20bot=C3=A3o=20de=20delet?= =?UTF-8?q?ar=20um=20m=C3=A9dico=20da=20lista?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ListaMedicos.jsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ui/src/components/ListaMedicos.jsx b/ui/src/components/ListaMedicos.jsx index 01ebbb9..12a5a59 100644 --- a/ui/src/components/ListaMedicos.jsx +++ b/ui/src/components/ListaMedicos.jsx @@ -1,6 +1,10 @@ import { useState, useEffect } from "react"; -import { Table } from 'antd'; +import { + DeleteOutlined, +} from '@ant-design/icons'; + +import { Button, Table } from 'antd'; import _service from '@netuno/service-client'; @@ -19,6 +23,11 @@ const medicosColumns = [ title: 'CRM', dataIndex: 'crm', key: 'crm', + }, + { + title: 'Delete', + dataIndex: 'delete', + key: 'delete', } ] @@ -34,6 +43,12 @@ function ListaMedicos() { _service({ url: "/services/medicos", success: (response) => { + response.json.map(item => item.delete = +