feat(warehouse): add warehouse.

This commit is contained in:
elforjani13
2022-01-24 01:35:45 +02:00
parent a958c6088a
commit bcb67c7142
14 changed files with 423 additions and 9 deletions

View File

@@ -0,0 +1,32 @@
import React from 'react';
import { Button, Intent } from '@blueprintjs/core';
import { FormattedMessage as T, Icon } from 'components';
import withDialogActions from 'containers/Dialog/withDialogActions';
import { compose } from 'utils';
/**
* Warehouse actions.
*/
function WarehousesActions({
//#ownProps
openDialog,
}) {
const handleClickNewWarehouse = () => {
openDialog('warehouse-form');
};
return (
<React.Fragment>
<Button
icon={<Icon icon="plus" iconSize={12} />}
onClick={handleClickNewWarehouse}
intent={Intent.PRIMARY}
>
<T id={'warehouses.label.new_warehouse'} />
</Button>
</React.Fragment>
);
}
export default compose(withDialogActions)(WarehousesActions);