From 1333c2b89dc6915b561ce1a2618bd97fb4c501ed Mon Sep 17 00:00:00 2001 From: dannyrb Date: Tue, 19 May 2020 23:15:33 -0400 Subject: [PATCH] Re-enable draggable thumbs --- .../ui/src/components/Thumbnail/Thumbnail.jsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/platform/ui/src/components/Thumbnail/Thumbnail.jsx b/platform/ui/src/components/Thumbnail/Thumbnail.jsx index ad3fd808a..15dfd93a4 100644 --- a/platform/ui/src/components/Thumbnail/Thumbnail.jsx +++ b/platform/ui/src/components/Thumbnail/Thumbnail.jsx @@ -15,26 +15,26 @@ 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 (
) : (
{imageAltText}
)}
-
+
- {'S: '} + {'S: '} {seriesNumber}
{numInstances}
-
{description}
+
{description}
); };