feat(warehouseTransfer): add warehouseTransfer.

This commit is contained in:
elforjani13
2022-01-23 14:07:23 +02:00
committed by a.bouhuolia
parent 7109f301d8
commit de2a71433b
43 changed files with 1786 additions and 7 deletions

View File

@@ -0,0 +1,43 @@
import React from 'react';
import intl from 'react-intl-universal';
// import {} from 'hooks/query';
import { DrawerHeaderContent, DrawerLoading } from 'components';
const WarehouseTransferDetailDrawerContext = React.createContext();
/**
* Warehouse transfer detail drawer provider.
*/
function WarehouseTransferDetailDrawerProvider({
warehouseTransferId,
...props
}) {
const provider = {
warehouseTransferId,
};
return (
<DrawerLoading
// loading={}
>
<DrawerHeaderContent
name="warehouse-transfer-detail-drawer"
title={intl.get('warehouse_transfer.drawer.title', {
number: 'W-10',
})}
/>
<WarehouseTransferDetailDrawerContext.Provider
value={provider}
{...props}
/>
</DrawerLoading>
);
}
const useWarehouseDetailDrawerContext = () =>
React.useContext(WarehouseTransferDetailDrawerContext);
export {
WarehouseTransferDetailDrawerProvider,
useWarehouseDetailDrawerContext,
};