mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat(inventory item & valuation): warehouse multi select.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import React from 'react';
|
||||
import intl from 'react-intl-universal';
|
||||
import { FormGroup, Classes } from '@blueprintjs/core';
|
||||
import { WarehouseMultiSelect, Row, Col } from 'components';
|
||||
import {
|
||||
InventoryValuationHeaderDimensionsProvider,
|
||||
useInventoryValuationHeaderDimensionsPanelContext,
|
||||
} from './InventoryValuationHeaderDimensionsPanelProvider';
|
||||
|
||||
/**
|
||||
* Inventory Valuation header dismension panel.
|
||||
* @returns
|
||||
*/
|
||||
export default function InventoryValuationHeaderDimensionsPanel() {
|
||||
return (
|
||||
<InventoryValuationHeaderDimensionsProvider>
|
||||
<InventoryValuationHeaderDimensionsPanelContent />
|
||||
</InventoryValuationHeaderDimensionsProvider>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Inventory Valuation header dismension panel content.
|
||||
* @returns
|
||||
*/
|
||||
function InventoryValuationHeaderDimensionsPanelContent() {
|
||||
const { warehouses } = useInventoryValuationHeaderDimensionsPanelContext();
|
||||
|
||||
return (
|
||||
<Row>
|
||||
<Col xs={4}>
|
||||
<FormGroup
|
||||
label={intl.get('warehouses_multi_select.label')}
|
||||
className={Classes.FILL}
|
||||
>
|
||||
<WarehouseMultiSelect
|
||||
name={'warehousesIds'}
|
||||
warehouses={warehouses}
|
||||
/>
|
||||
</FormGroup>
|
||||
</Col>
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user