mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
fix(webapp): use all drawers name from common enum object
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
} from '@/components';
|
||||
|
||||
import { compose } from '@/utils';
|
||||
import { DRAWERS } from '@/constants/drawers';
|
||||
|
||||
/**
|
||||
* Item action-bar of readonly details drawer.
|
||||
@@ -42,7 +43,7 @@ function ItemDetailActionsBar({
|
||||
// Handle edit item.
|
||||
const handleEditItem = () => {
|
||||
history.push(`/items/${itemId}/edit`);
|
||||
closeDrawer('item-detail-drawer');
|
||||
closeDrawer(DRAWERS.ITEM_DETAILS);
|
||||
};
|
||||
|
||||
// Handle delete item.
|
||||
|
||||
Reference in New Issue
Block a user