feat: optimize table of item associated transactions.

This commit is contained in:
a.bouhuolia
2021-12-21 17:11:41 +02:00
parent 7987f68aa3
commit 13310b1aac
11 changed files with 57 additions and 29 deletions

View File

@@ -2,10 +2,12 @@ import React from 'react';
import { useHistory } from 'react-router-dom';
import { DataTable } from '../../../../../components';
import { TableStyle } from 'common';
import TableSkeletonRows from 'components/Datatable/TableSkeletonRows'
import { useItemDetailDrawerContext } from '../../ItemDetailDrawerProvider';
import { useItemAssociatedBillTransactions } from 'hooks/query';
import { useBillTransactionsColumns, ActionsMenu } from './components';
import withAlertsActions from 'containers/Alert/withAlertActions';
import withDrawerActions from 'containers/Drawer/withDrawerActions';
@@ -60,6 +62,8 @@ function BillPaymentTransactions({
onEdit: handleEditPaymentTransactions,
onDelete: handleDeletePaymentTransactons,
}}
styleName={TableStyle.Constrant}
TableLoadingRenderer={TableSkeletonRows}
/>
);
}
@@ -67,3 +71,7 @@ export default compose(
withAlertsActions,
withDrawerActions,
)(BillPaymentTransactions);