mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix(webapp): use all drawers name from common enum object
This commit is contained in:
@@ -14,6 +14,7 @@ import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
||||
import { useDeleteInventoryAdjustment } from '@/hooks/query';
|
||||
|
||||
import { compose } from '@/utils';
|
||||
import { DRAWERS } from '@/constants/drawers';
|
||||
|
||||
/**
|
||||
* Inventory Adjustment delete alerts.
|
||||
@@ -49,7 +50,7 @@ function InventoryAdjustmentDeleteAlert({
|
||||
),
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
closeDrawer('inventory-adjustment-drawer');
|
||||
closeDrawer(DRAWERS.INVENTORY_ADJUSTMENT_DETAILS);
|
||||
})
|
||||
.catch((errors) => {})
|
||||
.finally(() => {
|
||||
|
||||
@@ -17,6 +17,7 @@ import withItemsActions from '@/containers/Items/withItemsActions';
|
||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
||||
|
||||
import { compose } from '@/utils';
|
||||
import { DRAWERS } from '@/constants/drawers';
|
||||
|
||||
/**
|
||||
* Item delete alerts.
|
||||
@@ -54,7 +55,7 @@ function ItemDeleteAlert({
|
||||
});
|
||||
// Reset to page number one.
|
||||
setItemsTableState({ page: 1 });
|
||||
closeDrawer('item-detail-drawer');
|
||||
closeDrawer(DRAWERS.ITEM_DETAILS);
|
||||
})
|
||||
.catch(
|
||||
({
|
||||
|
||||
Reference in New Issue
Block a user