()
| 34 | }; |
| 35 | |
| 36 | render() { |
| 37 | const { canDrop, isOver, connectDropTarget } = this.props; |
| 38 | const isActive = canDrop && isOver; |
| 39 | |
| 40 | return connectDropTarget( |
| 41 | <div style={style}> |
| 42 | {isActive ? |
| 43 | 'Release to drop' : |
| 44 | 'Drag file here' |
| 45 | } |
| 46 | </div>, |
| 47 | ); |
| 48 | } |
| 49 | } |
nothing calls this directly
no outgoing calls
no test coverage detected