File tree 2 files changed +2
-10
lines changed
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import PropTypes from "prop-types" ;
3
- import { DropTarget , useDrop } from "react-dnd" ;
3
+ import { DropTarget } from "react-dnd" ;
4
4
import StyledBin from "./Bin.style" ;
5
5
6
6
const dragTarget = {
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import PropTypes from "prop-types" ;
3
- import { DragSource , useDrag } from "react-dnd" ;
3
+ import { DragSource } from "react-dnd" ;
4
4
import DragPreview from "../game/DragLayer" ;
5
- import DragItem from "./item.style" ;
6
5
7
6
const dragSource = {
8
7
beginDrag ( props ) {
@@ -21,13 +20,6 @@ const collect = (connect, monitor) => {
21
20
const ItemTouch = props => {
22
21
const { connectDragSource, item } = props ;
23
22
24
- // const [{ opacity }, drag] = useDrag({
25
- // item: item,
26
- // collect: monitor => ({
27
- // opacity: monitor.isDragging() ? 0 : 1,
28
- // }),
29
- // });
30
-
31
23
return connectDragSource (
32
24
item . dropped ? null : (
33
25
< div className = "source" >
You can’t perform that action at this time.
0 commit comments