From 4ce1e9aedbeaebff2dc15701b16f894ec6627ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Fri, 22 May 2026 13:57:13 -0300 Subject: [PATCH] style: remove WhatsApp link from client phone number --- src/pages/ClientDetails.tsx | 4 ++-- test-fetch.js | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 test-fetch.js diff --git a/src/pages/ClientDetails.tsx b/src/pages/ClientDetails.tsx index 144e804..f533d08 100644 --- a/src/pages/ClientDetails.tsx +++ b/src/pages/ClientDetails.tsx @@ -81,10 +81,10 @@ const ClientDetails = () => { {clientPhone && ( <> - + {clientPhone} - + )} diff --git a/test-fetch.js b/test-fetch.js new file mode 100644 index 0000000..dc4b63f --- /dev/null +++ b/test-fetch.js @@ -0,0 +1,15 @@ +async function run() { + const loginRes = await fetch('http://localhost:3004/api/login', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ email: 'admin@admin.com', password: 'admin123' }) + }); + const { token } = await loginRes.json(); + const dataRes = await fetch('http://localhost:3004/api/data?start=2020-01-01&end=2030-01-01', { + headers: { 'Authorization': `Bearer ${token}` } + }); + const data = await dataRes.json(); + const fabricio = data.find(d => d.Nome_Cliente.includes('Teste Hoje')); + console.log(fabricio); +} +run(); \ No newline at end of file