mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 10:16:41 +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;
|
return initial;
|
||||||
}, [filters]);
|
}, [filters]);
|
||||||
|
|
||||||
console.log({
|
|
||||||
pagination,
|
|
||||||
rowCount
|
|
||||||
});
|
|
||||||
|
|
||||||
const table = useReactTable({
|
const table = useReactTable({
|
||||||
data: rows,
|
data: rows,
|
||||||
columns,
|
columns,
|
||||||
|
|||||||
@@ -320,11 +320,6 @@ export function DataTable<TData, TValue>({
|
|||||||
return result;
|
return result;
|
||||||
}, [data, tabs, activeTab, filters, activeFilters]);
|
}, [data, tabs, activeTab, filters, activeFilters]);
|
||||||
|
|
||||||
console.log({
|
|
||||||
pagination,
|
|
||||||
paginationState
|
|
||||||
});
|
|
||||||
|
|
||||||
const table = useReactTable({
|
const table = useReactTable({
|
||||||
data: filteredData,
|
data: filteredData,
|
||||||
columns,
|
columns,
|
||||||
@@ -852,12 +847,14 @@ export function DataTable<TData, TValue>({
|
|||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-4">
|
<div className="mt-4">
|
||||||
<DataTablePagination
|
{table.getRowModel().rows?.length > 0 && (
|
||||||
table={table}
|
<DataTablePagination
|
||||||
onPageSizeChange={handlePageSizeChange}
|
table={table}
|
||||||
pageSize={pagination.pageSize}
|
onPageSizeChange={handlePageSizeChange}
|
||||||
pageIndex={pagination.pageIndex}
|
pageSize={pagination.pageSize}
|
||||||
/>
|
pageIndex={pagination.pageIndex}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user