mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 07:40:32 +00:00
feat(branche & warehouse ) add mark primary alert.
This commit is contained in:
@@ -30,12 +30,18 @@ function WarehousesGridItems({
|
||||
openAlert('warehouse-delete', { warehouseId: warehouse.id });
|
||||
};
|
||||
|
||||
// Handle mark primary warehouse.
|
||||
const handleMarkPrimaryWarehouse = () => {
|
||||
openAlert('warehouse-mark-primary', { warehouseId: warehouse.id });
|
||||
};
|
||||
|
||||
return (
|
||||
<ContextMenu2
|
||||
content={
|
||||
<WarehouseContextMenu
|
||||
onEditClick={handleEditWarehouse}
|
||||
onDeleteClick={handleDeleteWarehouse}
|
||||
onMarkPrimary={handleMarkPrimaryWarehouse}
|
||||
/>
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user