Skip to content

Commit 05a3af7

Browse files
committed
remove comments
1 parent 185f9ec commit 05a3af7

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/components/bin/BinTouch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import PropTypes from "prop-types";
3-
import { DropTarget, useDrop } from "react-dnd";
3+
import { DropTarget } from "react-dnd";
44
import StyledBin from "./Bin.style";
55

66
const dragTarget = {

src/components/item/ItemTouch.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from "react";
22
import PropTypes from "prop-types";
3-
import { DragSource, useDrag } from "react-dnd";
3+
import { DragSource } from "react-dnd";
44
import DragPreview from "../game/DragLayer";
5-
import DragItem from "./item.style";
65

76
const dragSource = {
87
beginDrag(props) {
@@ -21,13 +20,6 @@ const collect = (connect, monitor) => {
2120
const ItemTouch = props => {
2221
const { connectDragSource, item } = props;
2322

24-
// const [{ opacity }, drag] = useDrag({
25-
// item: item,
26-
// collect: monitor => ({
27-
// opacity: monitor.isDragging() ? 0 : 1,
28-
// }),
29-
// });
30-
3123
return connectDragSource(
3224
item.dropped ? null : (
3325
<div className="source">

0 commit comments

Comments
 (0)