feat(warehouseTransfer): warehouse transfer detail.

This commit is contained in:
elforjani13
2022-02-03 01:02:31 +02:00
parent 8bf64c68e0
commit e7024955dd
5 changed files with 19 additions and 7 deletions

View File

@@ -34,15 +34,18 @@ function WarehouseTransferDetailActionsBar({
}) {
const history = useHistory();
const { warehouseTransferId, warehouseTransfer } =
useWarehouseDetailDrawerContext();
// Handle edit warehosue transfer.
const handleEditWarehosueTransfer = () => {
// history.push(`/warehouse-transfers/${warehouseTransferId}/edit`);
history.push(`/warehouses-transfers/${warehouseTransferId}/edit`);
closeDrawer('warehouse-transfer-detail-drawer');
};
// Handle delete warehouse transfer.
const handleDeletetWarehosueTransfer = () => {
// openAlert('warehouse-transfer-delete', { warehouseTransferId });
openAlert('warehouse-transfer-delete', { warehouseTransferId });
};
return (