diff --git a/src/app/DRE/analitico.tsx b/src/app/DRE/analitico.tsx index 93e8352..cab4e37 100644 --- a/src/app/DRE/analitico.tsx +++ b/src/app/DRE/analitico.tsx @@ -325,8 +325,8 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) { }; return ( - - + +
@@ -367,51 +367,55 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
-
- - - {table.getHeaderGroups().map((hg) => ( - - {hg.headers.map((header) => { - const sorted = header.column.getIsSorted(); - return ( - - ); - })} - - ))} - -
-
- - {flexRender(header.column.columnDef.header, header.getContext())} - -
- {sorted === "asc" ? ( - - ) : sorted === "desc" ? ( - - ) : ( -
- - -
- )} -
-
-
- -
- - +
+
+
+ + {table.getHeaderGroups().map((hg) => ( + + {hg.headers.map((header) => { + const sorted = header.column.getIsSorted(); + return ( + + ); + })} + + ))} + + {loading ? ( - {row.getVisibleCells().map((cell, cellIndex) => ( - - ))} + {row.getVisibleCells().map((cell, cellIndex) => ( + + ))} ); }) )} - -
+
+ + {flexRender(header.column.columnDef.header, header.getContext())} + +
+ {sorted === "asc" ? ( + + ) : sorted === "desc" ? ( + + ) : ( +
+ + +
+ )} +
+
+
@@ -441,70 +445,69 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
-
- {flexRender(cell.column.columnDef.cell, cell.getContext())} -
-
+
+ {flexRender(cell.column.columnDef.cell, cell.getContext())} +
+
-
-
- - {data.length > 0 && ( -
-
-
-
- - - -
-
-

- Total de Registros: {table.getRowModel().rows.length} -

-

Transações encontradas

-
-
-
-

- - Valor Total: {new Intl.NumberFormat('pt-BR', { - style: 'currency', - currency: 'BRL', - }).format(totalValor)} - -

-

Soma de todos os valores

-
-
-
- )} + + +
+ + {data.length > 0 && ( +
+
+
+
+ + + +
+
+

+ Total de Registros: {table.getRowModel().rows.length} +

+

Transações encontradas

+
+
+
+

+ + Valor Total: {new Intl.NumberFormat('pt-BR', { + style: 'currency', + currency: 'BRL', + }).format(totalValor)} + +

+

Soma de todos os valores

+
+
+
+ )} +