fix(warehouse ) fix mark primary warehouse alert.

This commit is contained in:
elforjani13
2022-02-08 21:18:52 +02:00
committed by a.bouhuolia
parent 5aae2c849d
commit 91c7d746b1
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ function WarehouseMarkPrimaryAlert({
const handleCancelMarkPrimaryAlert = () => {
closeAlert(name);
};
console.log(warehouseId, 'XX');
// andle cancel mark primary confirm.
const handleConfirmMarkPrimaryWarehouse = () => {
markPrimaryWarehouseMutate(warehouseId)

View File

@@ -12,7 +12,7 @@ import { safeCallback } from 'utils';
export function WarehouseContextMenu({
onEditClick,
onDeleteClick,
onPrimary,
onMarkPrimary,
}) {
return (
<Menu>
@@ -24,7 +24,7 @@ export function WarehouseContextMenu({
<MenuItem
icon={<Icon icon="check" />}
text={intl.get('warehouses.action.make_as_parimary')}
onClick={safeCallback(onPrimary)}
onClick={safeCallback(onMarkPrimary)}
/>
<MenuDivider />
<MenuItem