Files
bigcapital/src/containers/InventoryAdjustments/InventoryAdjustmentList.js
2021-10-31 13:13:38 +02:00

41 lines
1.0 KiB
JavaScript

import React from 'react';
import 'style/pages/InventoryAdjustments/List.scss';
import { DashboardContentTable, DashboardPageContent } from 'components';
import { InventoryAdjustmentsProvider } from './InventoryAdjustmentsProvider';
import InventoryAdjustmentTable from './InventoryAdjustmentTable';
import withInventoryAdjustments from './withInventoryAdjustments';
import { compose, transformTableStateToQuery } from 'utils';
/**
* Inventory Adjustment List.
*/
function InventoryAdjustmentList({
// #withInventoryAdjustments
inventoryAdjustmentTableState,
}) {
return (
<InventoryAdjustmentsProvider
query={transformTableStateToQuery(inventoryAdjustmentTableState)}
>
<DashboardPageContent>
<DashboardContentTable>
<InventoryAdjustmentTable />
</DashboardContentTable>
</DashboardPageContent>
</InventoryAdjustmentsProvider>
);
}
export default compose(
withInventoryAdjustments(({ inventoryAdjustmentTableState }) => ({
inventoryAdjustmentTableState,
})),
)(InventoryAdjustmentList);