diff --git a/src/pages/AvisosContas.tsx b/src/pages/AvisosContas.tsx index 5a0e879..1830f3c 100644 --- a/src/pages/AvisosContas.tsx +++ b/src/pages/AvisosContas.tsx @@ -10,7 +10,7 @@ const AvisosContas = () => { const [showForm, setShowForm] = useState(false); return ( -
+

Avisos de Contas a Pagar

diff --git a/src/pages/Categorias.tsx b/src/pages/Categorias.tsx index 65ed9a1..7545a39 100644 --- a/src/pages/Categorias.tsx +++ b/src/pages/Categorias.tsx @@ -1,4 +1,3 @@ - import { useState, useEffect } from 'react'; import Layout from '@/components/layout/Layout'; import { CardSpotlight } from '@/components/ui/card-spotlight'; @@ -78,128 +77,126 @@ const CategoriasPage = () => { const totalGastos = categories.reduce((total, category) => total + category.valor, 0); return ( - -
-
-

Categorias

-
- Filtrar por: - -
+
+
+

Categorias

+
+ Filtrar por: +
+
- {isLoading ? ( + {isLoading ? ( +
+ {[1, 2, 3, 4, 5, 6].map((i) => ( + +
+
+
+
+
+
+
+
+ ))} +
+ ) : categories.length === 0 ? ( + +
+

Nenhuma categoria encontrada

+

+ {tipoFiltro === 'despesa' + ? 'Verifique se existem transações do tipo "despesa" cadastradas' + : tipoFiltro === 'receita' + ? 'Verifique se existem transações do tipo "receita" cadastradas' + : 'Verifique se existem transações cadastradas'} +

+
+
+ ) : ( + <>
- {[1, 2, 3, 4, 5, 6].map((i) => ( - + {categories.map((category) => ( +
-
+
+ + {category.categoria} +
-
-
-
+
+
+ {formatCurrency(category.valor)} +
+
+ +
+ {(category.percentage * 100).toFixed(1)}% do total +
+
))}
- ) : categories.length === 0 ? ( - -
-

Nenhuma categoria encontrada

-

- {tipoFiltro === 'despesa' - ? 'Verifique se existem transações do tipo "despesa" cadastradas' - : tipoFiltro === 'receita' - ? 'Verifique se existem transações do tipo "receita" cadastradas' - : 'Verifique se existem transações cadastradas'} -

+ + +
+

Resumo de Categorias {tipoFiltro !== 'all' ? (tipoFiltro === 'despesa' ? '(Despesas)' : '(Receitas)') : ''}

+
+
+ + + + Categoria + Valor + Percentual + + + + {categories.map((category) => ( + + + + {category.categoria} + + {formatCurrency(category.valor)} + {(category.percentage * 100).toFixed(1)}% + + ))} + + Total + {formatCurrency(totalGastos)} + 100% + + +
- ) : ( - <> -
- {categories.map((category) => ( - -
-
- - {category.categoria} -
-
-
-
- {formatCurrency(category.valor)} -
-
- -
- {(category.percentage * 100).toFixed(1)}% do total -
-
-
-
- ))} -
- - -
-

Resumo de Categorias {tipoFiltro !== 'all' ? (tipoFiltro === 'despesa' ? '(Despesas)' : '(Receitas)') : ''}

-
-
- - - - Categoria - Valor - Percentual - - - - {categories.map((category) => ( - - - - {category.categoria} - - {formatCurrency(category.valor)} - {(category.percentage * 100).toFixed(1)}% - - ))} - - Total - {formatCurrency(totalGastos)} - 100% - - -
-
-
- - )} -
- + + )} +
); };