| 133 | * @return {JSX.Element} |
| 134 | */ |
| 135 | const showMenus = () => { |
| 136 | if (shape.drawer.getToolMenus().length > 0) { |
| 137 | return (<> |
| 138 | <div onMouseDown={e => e.stopPropagation()} className={'jade-menus'}> |
| 139 | <Dropdown |
| 140 | getPopupContainer={trigger => trigger.parentNode} |
| 141 | disabled={shapeStatus.disabled} |
| 142 | menu={getMenu()} |
| 143 | trigger='click' |
| 144 | placement='bottomRight'> |
| 145 | <Button type='text' size='small' className={'react-node-header-button icon-button'}> |
| 146 | {HEADER_TOOL_MENU_ICON} |
| 147 | </Button> |
| 148 | </Dropdown> |
| 149 | </div> |
| 150 | </>); |
| 151 | } |
| 152 | return <></>; |
| 153 | }; |
| 154 | |
| 155 | const onConfirm = (newData) => { |
| 156 | dispatch({type: 'changeFlowMeta', actionType: 'changeFlowMeta', data: newData}); |