(WrappedComponent)
| 54 | }; |
| 55 | |
| 56 | export function HTML5DragDrop(WrappedComponent) { |
| 57 | return class HTML5DragDrop extends Component { |
| 58 | static propTypes = { |
| 59 | ...WrappedComponent.propTypes, |
| 60 | }; |
| 61 | |
| 62 | render() { |
| 63 | return ( |
| 64 | <ReactDNDProvider backend={ReactDNDHTML5Backend}> |
| 65 | <WrappedComponent {...this.props} /> |
| 66 | </ReactDNDProvider> |
| 67 | ); |
| 68 | } |
| 69 | }; |
| 70 | } |