mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: item read-only details drawer style.
This commit is contained in:
@@ -9,12 +9,14 @@ function ItemUniversalSearchSelectComponent({
|
||||
// #ownProps
|
||||
resourceType,
|
||||
resourceId,
|
||||
onAction,
|
||||
|
||||
// #withDrawerActions
|
||||
openDrawer,
|
||||
}) {
|
||||
if (resourceType === RESOURCES_TYPES.ITEM) {
|
||||
|
||||
openDrawer('item-detail-drawer', { itemId: resourceId });
|
||||
onAction && onAction();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -29,6 +31,7 @@ export const ItemUniversalSearchSelectAction = withDrawerActions(
|
||||
* @returns
|
||||
*/
|
||||
const transfromItemsToSearch = (item) => ({
|
||||
id: item.id,
|
||||
text: item.name,
|
||||
subText: item.code,
|
||||
label: item.type,
|
||||
|
||||
Reference in New Issue
Block a user