diff --git a/src/components/transacoes/TransactionSummaryCards.tsx b/src/components/transacoes/TransactionSummaryCards.tsx index d39ea72..7a1e7d6 100644 --- a/src/components/transacoes/TransactionSummaryCards.tsx +++ b/src/components/transacoes/TransactionSummaryCards.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { ArrowUp, ArrowDown, CreditCard } from 'lucide-react'; -import { SimpleCard } from '@/components/ui/simple-card'; interface TransactionSummaryCardsProps { totalReceitas: number; @@ -16,66 +15,58 @@ export const TransactionSummaryCards = ({ totalCartoes, formatCurrency }: TransactionSummaryCardsProps) => { - // Calculate the grand total of all expenses const totalGeral = totalDespesas + totalCartoes; return ( -
- {formatCurrency(totalReceitas)} +
+ {formatCurrency(totalReceitas)} +
++ {formatCurrency(totalDespesas)} +
++ {formatCurrency(totalCartoes)}
-- {formatCurrency(totalGeral)} -
-- Despesas + Cartões -
-- Nenhuma categoria de receita encontrada -
- ) : ( - receitas.map((categoria) => ( -{categoria.nome}
-- {categoria.total ? formatCurrency(categoria.total) : 'R$ 0,00'} -
-- Nenhuma categoria de despesa encontrada -
- ) : ( - despesas.map((categoria) => ( -{categoria.nome}
-- {categoria.total ? formatCurrency(categoria.total) : 'R$ 0,00'} -
-+ {formatCurrency(categoria.valor)} +
++ {formatPercentage(categoria.percentage)} do total +
+| Categoria | +Valor | +Percentual | +
|---|---|---|
|
+
+
+ {categoria.categoria}
+
+ |
+ + {formatCurrency(categoria.valor)} + | ++ {formatPercentage(categoria.percentage)} + | +
| Total | +{formatCurrency(totalGeral)} | +100% | +
+ Nenhuma categoria encontrada para {filtro === 'despesa' ? 'despesas' : 'receitas'}. +
++ Adicione algumas transações para ver as categorias aqui. +
+