(props, monitor)
| 21 | }, |
| 22 | |
| 23 | endDrag(props, monitor) { |
| 24 | const item = monitor.getItem(); |
| 25 | const dropResult = monitor.getDropResult(); |
| 26 | |
| 27 | if (dropResult) { |
| 28 | window.alert( // eslint-disable-line no-alert |
| 29 | `You dropped ${item.name} into ${dropResult.name}!`, |
| 30 | ); |
| 31 | } |
| 32 | }, |
| 33 | }; |
| 34 | |
| 35 | @DragSource(ItemTypes.BOX, boxSource, (connect, monitor) => ({ |
nothing calls this directly
no test coverage detected