Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
connectDragSource: connect.dragSource(),
isDragging: monitor.isDragging(),
connectDragPreview: connect.dragPreview()
};
}
const headerCellSource = {
beginDrag(props) {
return props.column;
},
endDrag(props) {
return props.column;
}
};
export default DragSource(DragItemTypes.Column, headerCellSource, collect)(DraggableHeaderCell);
if (typeof props.onColumnGroupAdded === 'function') {
props.onColumnGroupAdded(item.key);
}
}
};
function collect(connect, monitor) {
return {
connectDropTarget: connect.dropTarget(),
isOver: monitor.isOver(),
canDrop: monitor.canDrop(),
draggedolumn: monitor.getItem()
};
}
export default DropTarget(DragItemTypes.Column, columnTarget, collect)(GroupedColumnsPanel);