Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
className,
style,
didDrop
} = this.props;
const nodeTitle = title || node.title;
const plugin = getPlugins("pb-menu-item").find(pl => pl.menuItem.type === node.type);
if (!plugin) {
return null;
}
const handle = connectDragSource(<div>{plugin.icon}</div>, {
dropEffect: "copy"
});
const isDraggedDescendant = draggedNode && isDescendant(draggedNode, node);
const isLandingPadActive = !didDrop && isDragging;
let buttonStyle = { left: -0.5 * scaffoldBlockPxWidth };
return (
<div style="{{">
{toggleChildrenVisibility &&
node.children &&
(node.children.length > 0 || typeof node.children === "function") && (
<div>
</div></div>
const canHaveChildren = (node) => {
return (node.type === 'sequence' || node.type === 'loop' || node.type === 'conditionTrue' || node.type === 'conditionFalse') && !isDescendant(nodeToMove.node, node)
}
className,
style,
didDrop
} = this.props;
const nodeTitle = title || node.title;
const plugin = getPlugins("pb-menu-item").find(pl => pl.menuItem.type === node.type);
if (!plugin) {
return null;
}
const handle = connectDragSource(<div>{plugin.icon}</div>, {
dropEffect: "copy"
});
const isDraggedDescendant = draggedNode && isDescendant(draggedNode, node);
const isLandingPadActive = !didDrop && isDragging;
let buttonStyle = { left: -0.5 * scaffoldBlockPxWidth };
return (
<div style="{{">
{toggleChildrenVisibility &&
node.children &&
(node.children.length > 0 || typeof node.children === "function") && (
<div>
</div></div>