()
| 30 | }; |
| 31 | |
| 32 | render() { |
| 33 | const { isDragging, connectDragSource, showCopyIcon } = this.props; |
| 34 | const opacity = isDragging ? 0.4 : 1; |
| 35 | const dropEffect = showCopyIcon ? 'copy' : 'move'; |
| 36 | |
| 37 | return connectDragSource( |
| 38 | <div style={{ ...style, opacity }}> |
| 39 | When I am over a drop zone, I have {showCopyIcon ? 'copy' : 'no'} icon. |
| 40 | </div>, |
| 41 | { dropEffect }, |
| 42 | ); |
| 43 | } |
| 44 | } |
nothing calls this directly
no outgoing calls
no test coverage detected