mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
41 lines
1.0 KiB
JavaScript
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);
|