Skip to content

Commit

Permalink
Fix useMultiDrag examples in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed May 7, 2020
1 parent 38f2263 commit 7471346
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-dnd-multi-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Example:
import { useMultiDrag } from 'react-dnd-multi-backend';

const MultiCard = (props) => {
const [[dragProps], {html5: [html5Drag], touch: [touchDrag]}] = useMultiDrag({
const [[dragProps], {html5: [_html5Props, html5Drag], touch: [_touchProps, touchDrag]}] = useMultiDrag({
item: {type: 'card', color: props.color},
collect: (monitor) => {
return {
Expand Down
1 change: 0 additions & 1 deletion packages/react-dnd-multi-backend/src/hooks/usePreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const usePreview = () => {
if (!enabled) {
return {display: false};
}

return result;
};

Expand Down

0 comments on commit 7471346

Please sign in to comment.