style: remove WhatsApp link from client phone number
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m24s

This commit is contained in:
Cauê Faleiros
2026-05-22 13:57:13 -03:00
parent fc8a5e47a0
commit 4ce1e9aedb
2 changed files with 17 additions and 2 deletions

View File

@@ -81,10 +81,10 @@ const ClientDetails = () => {
{clientPhone && ( {clientPhone && (
<> <>
<span className="text-zinc-300 dark:text-dark-border"></span> <span className="text-zinc-300 dark:text-dark-border"></span>
<a href={`https://wa.me/${clientPhone.replace(/\D/g, '')}`} target="_blank" rel="noreferrer" className="flex items-center gap-1.5 text-brand-primary hover:opacity-80 transition-opacity font-bold text-sm bg-brand-primary/10 px-2 py-1 rounded-md"> <span className="flex items-center gap-1.5 text-brand-primary font-bold text-sm bg-brand-primary/10 px-2 py-1 rounded-md">
<Phone className="w-3.5 h-3.5" /> <Phone className="w-3.5 h-3.5" />
{clientPhone} {clientPhone}
</a> </span>
</> </>
)} )}
</div> </div>

15
test-fetch.js Normal file
View File

@@ -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();