fix: resources table issues.

This commit is contained in:
a.bouhuolia
2021-02-21 16:03:17 +02:00
parent 350a148747
commit f96166514b
13 changed files with 68 additions and 29 deletions

View File

@@ -7,6 +7,7 @@ import TableSkeletonHeader from 'components/Datatable/TableHeaderSkeleton';
import { DataTable } from 'components';
import withCustomers from './withCustomers';
import withCustomersActions from './withCustomersActions';
import withAlertsActions from 'containers/Alert/withAlertActions';
import withDialogActions from 'containers/Dialog/withDialogActions';
@@ -23,6 +24,9 @@ function CustomersTable({
// #withCustomersActions
setCustomersTableState,
// #withCustomers
customersTableState,
// #withAlerts
openAlert,
}) {
@@ -71,6 +75,7 @@ function CustomersTable({
noInitialFetch={true}
columns={columns}
data={customers}
initialState={customersTableState}
loading={isCustomersLoading}
headerLoading={isCustomersLoading}
progressBarLoading={isCustomersFetching}
@@ -100,4 +105,5 @@ export default compose(
withAlertsActions,
withDialogActions,
withCustomersActions,
withCustomers(({ customersTableState }) => ({ customersTableState })),
)(CustomersTable);