mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix: initial page size to the data tables from store state
This commit is contained in:
@@ -125,8 +125,9 @@ function ManualJournalsDataTable({
|
|||||||
loading={isManualJournalsLoading}
|
loading={isManualJournalsLoading}
|
||||||
headerLoading={isManualJournalsLoading}
|
headerLoading={isManualJournalsLoading}
|
||||||
progressBarLoading={isManualJournalsFetching}
|
progressBarLoading={isManualJournalsFetching}
|
||||||
pagesCount={pagination.pagesCount}
|
|
||||||
pagination={true}
|
pagination={true}
|
||||||
|
initialPageSize={manualJournalsTableState.pageSize}
|
||||||
|
pagesCount={pagination.pagesCount}
|
||||||
autoResetSortBy={false}
|
autoResetSortBy={false}
|
||||||
autoResetPage={false}
|
autoResetPage={false}
|
||||||
TableLoadingRenderer={TableSkeletonRows}
|
TableLoadingRenderer={TableSkeletonRows}
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ function InventoryAdjustmentDataTable({
|
|||||||
manualSortBy={true}
|
manualSortBy={true}
|
||||||
selectionColumn={true}
|
selectionColumn={true}
|
||||||
pagination={true}
|
pagination={true}
|
||||||
|
initialPageSize={inventoryAdjustmentTableState.pageSize}
|
||||||
pagesCount={pagination.pagesCount}
|
pagesCount={pagination.pagesCount}
|
||||||
autoResetSortBy={false}
|
autoResetSortBy={false}
|
||||||
autoResetPage={false}
|
autoResetPage={false}
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ function BillsDataTable({
|
|||||||
noInitialFetch={true}
|
noInitialFetch={true}
|
||||||
sticky={true}
|
sticky={true}
|
||||||
pagination={true}
|
pagination={true}
|
||||||
|
initialPageSize={billsTableState.pageSize}
|
||||||
pagesCount={pagination.pagesCount}
|
pagesCount={pagination.pagesCount}
|
||||||
TableLoadingRenderer={TableSkeletonRows}
|
TableLoadingRenderer={TableSkeletonRows}
|
||||||
TableHeaderSkeletonRenderer={TableSkeletonHeader}
|
TableHeaderSkeletonRenderer={TableSkeletonHeader}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import withAlertsActions from '@/containers/Alert/withAlertActions';
|
|||||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
||||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
||||||
import withVendorsCreditNotesActions from './withVendorsCreditNotesActions';
|
import withVendorsCreditNotesActions from './withVendorsCreditNotesActions';
|
||||||
|
import withVendorsCreditNotes from './withVendorsCreditNotes';
|
||||||
import withSettings from '@/containers/Settings/withSettings';
|
import withSettings from '@/containers/Settings/withSettings';
|
||||||
|
|
||||||
import { useVendorsCreditNoteTableColumns, ActionsMenu } from './components';
|
import { useVendorsCreditNoteTableColumns, ActionsMenu } from './components';
|
||||||
@@ -32,6 +33,9 @@ function VendorsCreditNoteDataTable({
|
|||||||
// #withVendorsCreditNotesActions
|
// #withVendorsCreditNotesActions
|
||||||
setVendorsCreditNoteTableState,
|
setVendorsCreditNoteTableState,
|
||||||
|
|
||||||
|
// #withVendorCredits
|
||||||
|
vendorsCreditNoteTableState,
|
||||||
|
|
||||||
// #withAlertsActions
|
// #withAlertsActions
|
||||||
openAlert,
|
openAlert,
|
||||||
|
|
||||||
@@ -129,6 +133,7 @@ function VendorsCreditNoteDataTable({
|
|||||||
noInitialFetch={true}
|
noInitialFetch={true}
|
||||||
sticky={true}
|
sticky={true}
|
||||||
pagination={true}
|
pagination={true}
|
||||||
|
initialPageSize={vendorsCreditNoteTableState.pageSize}
|
||||||
pagesCount={pagination.pagesCount}
|
pagesCount={pagination.pagesCount}
|
||||||
TableLoadingRenderer={TableSkeletonRows}
|
TableLoadingRenderer={TableSkeletonRows}
|
||||||
TableHeaderSkeletonRenderer={TableSkeletonHeader}
|
TableHeaderSkeletonRenderer={TableSkeletonHeader}
|
||||||
@@ -159,4 +164,7 @@ export default compose(
|
|||||||
withSettings(({ vendorsCreditNoteSetting }) => ({
|
withSettings(({ vendorsCreditNoteSetting }) => ({
|
||||||
creditNoteTableSize: vendorsCreditNoteSetting?.tableSize,
|
creditNoteTableSize: vendorsCreditNoteSetting?.tableSize,
|
||||||
})),
|
})),
|
||||||
|
withVendorsCreditNotes(({ vendorsCreditNoteTableState }) => ({
|
||||||
|
vendorsCreditNoteTableState,
|
||||||
|
})),
|
||||||
)(VendorsCreditNoteDataTable);
|
)(VendorsCreditNoteDataTable);
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ function PaymentMadesTable({
|
|||||||
noInitialFetch={true}
|
noInitialFetch={true}
|
||||||
sticky={true}
|
sticky={true}
|
||||||
pagination={true}
|
pagination={true}
|
||||||
|
initialPageSize={paymentMadesTableState.pageSize}
|
||||||
pagesCount={pagination.pagesCount}
|
pagesCount={pagination.pagesCount}
|
||||||
autoResetSortBy={false}
|
autoResetSortBy={false}
|
||||||
autoResetPage={false}
|
autoResetPage={false}
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ function PaymentsReceivedDataTable({
|
|||||||
// #withPaymentsReceivedActions
|
// #withPaymentsReceivedActions
|
||||||
setPaymentReceivesTableState,
|
setPaymentReceivesTableState,
|
||||||
|
|
||||||
|
// #withPaymentsReceived
|
||||||
|
paymentReceivesTableState,
|
||||||
|
|
||||||
// #withAlertsActions
|
// #withAlertsActions
|
||||||
openAlert,
|
openAlert,
|
||||||
|
|
||||||
@@ -124,6 +127,7 @@ function PaymentsReceivedDataTable({
|
|||||||
autoResetSortBy={false}
|
autoResetSortBy={false}
|
||||||
autoResetPage={false}
|
autoResetPage={false}
|
||||||
pagination={true}
|
pagination={true}
|
||||||
|
initialPageSize={paymentReceivesTableState.pageSize}
|
||||||
pagesCount={pagination.pagesCount}
|
pagesCount={pagination.pagesCount}
|
||||||
TableLoadingRenderer={TableSkeletonRows}
|
TableLoadingRenderer={TableSkeletonRows}
|
||||||
TableHeaderSkeletonRenderer={TableSkeletonHeader}
|
TableHeaderSkeletonRenderer={TableSkeletonHeader}
|
||||||
|
|||||||
Reference in New Issue
Block a user