mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: items issues.
This commit is contained in:
@@ -32,7 +32,7 @@ function TableHeaderCell({ column, index }) {
|
||||
{...column.getSortByToggleProps({
|
||||
className: classNames('cell-inner', {
|
||||
'text-overview': column.textOverview,
|
||||
}),
|
||||
})
|
||||
})}
|
||||
>
|
||||
{column.render('Header')}
|
||||
|
||||
@@ -27,7 +27,7 @@ export default function TablePagination() {
|
||||
const pageIndex = page - 1;
|
||||
|
||||
gotoPage(pageIndex);
|
||||
triggerOnPaginationChange({ page, pageSize });
|
||||
triggerOnPaginationChange({ pageIndex, pageSize });
|
||||
},
|
||||
[gotoPage, triggerOnPaginationChange],
|
||||
);
|
||||
@@ -35,10 +35,12 @@ export default function TablePagination() {
|
||||
// Handles the page size changing.
|
||||
const handlePageSizeChange = useCallback(
|
||||
({ pageSize, page }) => {
|
||||
gotoPage(0);
|
||||
const pageIndex = 0;
|
||||
|
||||
gotoPage(pageIndex);
|
||||
setPageSize(pageSize);
|
||||
|
||||
triggerOnPaginationChange({ page, pageSize });
|
||||
triggerOnPaginationChange({ pageIndex, pageSize });
|
||||
},
|
||||
[gotoPage, setPageSize, triggerOnPaginationChange],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user