From 67116d13c44b145c6197be65a418ffb9ed12d901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Mon, 6 Jul 2026 13:23:07 -0300 Subject: [PATCH] Polish product stock table layout --- src/pages/Products.tsx | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/pages/Products.tsx b/src/pages/Products.tsx index 5d43ddc..ef9d482 100644 --- a/src/pages/Products.tsx +++ b/src/pages/Products.tsx @@ -24,8 +24,8 @@ type ProductRow = ProductAnalyticsItem & { const riskStyles: Record = { rupture: { label: 'Sem estoque', - className: 'border-fuchsia-400/35 bg-fuchsia-400/10 text-fuchsia-300', - dotClass: 'bg-fuchsia-400' + className: 'border-zinc-500/30 bg-zinc-500/10 text-zinc-300', + dotClass: 'bg-zinc-400' }, critical: { label: 'Até 7 dias', @@ -575,7 +575,18 @@ const Products = () => { ) : (
- +
+ + + + + + + + + + + @@ -596,31 +607,31 @@ const Products = () => { return ( - - - - - + + - +
ID Produto
#{product.id} -
{product.name}
+
+
{product.name}
Preço Atual: {formatCurrency(product.lastPrice)}
- + {style.label} +
{formatNumber(product.quantitySold)} un.
{formatNumber(product.stock)} un.{formatNumber(product.dailySales, 2)} un./dia + {formatNumber(product.stock)} un.{formatNumber(product.dailySales, 2)} un./dia {formatDays(product.daysOfCover)} {formatCurrency(product.revenue)}{formatCurrency(product.revenue)}