From ba5d465aa9588fcf7b15dc66580004b4525305ed Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Mon, 18 May 2020 23:27:43 +0200 Subject: [PATCH] Temporarily remove drag from thumbnails --- platform/ui/src/components/Thumbnail/Thumbnail.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/ui/src/components/Thumbnail/Thumbnail.jsx b/platform/ui/src/components/Thumbnail/Thumbnail.jsx index f62b2f304..ad3fd808a 100644 --- a/platform/ui/src/components/Thumbnail/Thumbnail.jsx +++ b/platform/ui/src/components/Thumbnail/Thumbnail.jsx @@ -15,23 +15,23 @@ const Thumbnail = ({ description, seriesNumber, numInstances, - dragData, + // dragData, isActive, onClick, }) => { // TODO: We should wrap our thumbnail to create a "DraggableThumbnail", as // this will still allow for "drag", even if there is no drop target for the // specified item. - const [collectedProps, drag, dragPreview] = useDrag({ + /*const [collectedProps, drag, dragPreview] = useDrag({ item: { ...dragData }, canDrag: function(monitor) { return Object.keys(dragData).length !== 0; }, - }); + });*/ + // ref={drag} return (