mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-17 15:08:19 +00:00
dont show table footer in client-side data-table
This commit is contained in:
@@ -124,11 +124,6 @@ export function ControlledDataTable<TData, TValue>({
|
||||
return initial;
|
||||
}, [filters]);
|
||||
|
||||
console.log({
|
||||
pagination,
|
||||
rowCount
|
||||
});
|
||||
|
||||
const table = useReactTable({
|
||||
data: rows,
|
||||
columns,
|
||||
|
||||
@@ -320,11 +320,6 @@ export function DataTable<TData, TValue>({
|
||||
return result;
|
||||
}, [data, tabs, activeTab, filters, activeFilters]);
|
||||
|
||||
console.log({
|
||||
pagination,
|
||||
paginationState
|
||||
});
|
||||
|
||||
const table = useReactTable({
|
||||
data: filteredData,
|
||||
columns,
|
||||
@@ -852,12 +847,14 @@ export function DataTable<TData, TValue>({
|
||||
</Table>
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
<DataTablePagination
|
||||
table={table}
|
||||
onPageSizeChange={handlePageSizeChange}
|
||||
pageSize={pagination.pageSize}
|
||||
pageIndex={pagination.pageIndex}
|
||||
/>
|
||||
{table.getRowModel().rows?.length > 0 && (
|
||||
<DataTablePagination
|
||||
table={table}
|
||||
onPageSizeChange={handlePageSizeChange}
|
||||
pageSize={pagination.pageSize}
|
||||
pageIndex={pagination.pageIndex}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user