king
2020-09-21 768bc58b16f23c55ce9eb34bb58173313fd30bab
src/templates/sharecomponent/columncomponent/dragcolumn/card.jsx
@@ -14,18 +14,14 @@
  const [, drop] = useDrop({
    accept: 'columns',
    canDrop: () => true,
    drop: (item) => {
      if (!item.hasOwnProperty('originalIndex')) {
    drop: ({ id: draggedId, originalIndex }) => {
      if (originalIndex === undefined) {
        hasDrop(card)
      }
    },
    hover({ id: draggedId }) {
      if (!draggedId) return
      if (draggedId !== id) {
      } else if (draggedId && draggedId !== id) {
        const { index: overIndex } = findCard(id)
        moveCard(draggedId, overIndex)
      }
    },
    }
  })
  
  const opacity = isDragging ? 0 : 1