Temporarily remove drag from thumbnails
This commit is contained in:
parent
63cf079288
commit
ba5d465aa9
@ -15,23 +15,23 @@ const Thumbnail = ({
|
|||||||
description,
|
description,
|
||||||
seriesNumber,
|
seriesNumber,
|
||||||
numInstances,
|
numInstances,
|
||||||
dragData,
|
// dragData,
|
||||||
isActive,
|
isActive,
|
||||||
onClick,
|
onClick,
|
||||||
}) => {
|
}) => {
|
||||||
// TODO: We should wrap our thumbnail to create a "DraggableThumbnail", as
|
// 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
|
// this will still allow for "drag", even if there is no drop target for the
|
||||||
// specified item.
|
// specified item.
|
||||||
const [collectedProps, drag, dragPreview] = useDrag({
|
/*const [collectedProps, drag, dragPreview] = useDrag({
|
||||||
item: { ...dragData },
|
item: { ...dragData },
|
||||||
canDrag: function(monitor) {
|
canDrag: function(monitor) {
|
||||||
return Object.keys(dragData).length !== 0;
|
return Object.keys(dragData).length !== 0;
|
||||||
},
|
},
|
||||||
});
|
});*/
|
||||||
|
|
||||||
|
// ref={drag}
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={drag}
|
|
||||||
className={classnames(
|
className={classnames(
|
||||||
className,
|
className,
|
||||||
'flex flex-col flex-1 px-3 cursor-pointer outline-none'
|
'flex flex-col flex-1 px-3 cursor-pointer outline-none'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user