mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix(webapp): use all drawers name from common enum object
This commit is contained in:
@@ -4,6 +4,7 @@ import intl from 'react-intl-universal';
|
||||
import { RESOURCES_TYPES } from '@/constants/resourcesTypes';
|
||||
import { AbilitySubject, VendorAction } from '@/constants/abilityOption';
|
||||
import withDrawerActions from '../Drawer/withDrawerActions';
|
||||
import { DRAWERS } from '@/constants/drawers';
|
||||
|
||||
/**
|
||||
* Vendor univesal search item select action.
|
||||
@@ -17,7 +18,7 @@ function VendorUniversalSearchSelectComponent({
|
||||
openDrawer,
|
||||
}) {
|
||||
if (resourceType === RESOURCES_TYPES.VENDOR) {
|
||||
openDrawer('vendor-detail-drawer', { vendorId: resourceId });
|
||||
openDrawer(DRAWERS.VENDOR_DETAILS, { vendorId: resourceId });
|
||||
onAction && onAction();
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user