MCPcopy Create free account
hub / github.com/DTStack/molecule / initContextMenu

Function initContextMenu

src/workbench/sidebar/explore/folderTree.tsx:108–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107 // init context menu
108 const initContextMenu = () => {
109 return useContextMenu({
110 anchor: select(`.${folderTreeClassName}`),
111 render: () => (
112 <Menu
113 role="menu"
114 onClick={onClickMenuItem}
115 data={folderPanelContextMenu}
116 />
117 ),
118 });
119 };
120
121 const handleMenuClick = (
122 item: IMenuItemProps,

Callers 1

FolderTreeFunction · 0.85

Calls 1

useContextMenuFunction · 0.90

Tested by

no test coverage detected