UNPKG

@6thquake/react-material

Version:

React components that implement Google's Material Design.

34 lines (29 loc) 755 B
/** * @ignore - do not document. */ import React from 'react'; import PropTypes from 'prop-types'; import withStyles from '../styles/withStyles'; import List from '../List'; import { DropTarget, DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; const boxTarget = { drop(props, monitor, component) { const item = monitor.getItem(); } }; var _ref = React.createElement("div", null, React.createElement(List, null)); class DL extends React.Component { render() { const { connectDropTarget } = this.props; return connectDropTarget(_ref); } } const C = DropTarget('transfer', boxTarget, connect => { return { connectDropTarget: connect.dropTarget() }; })(DL); export default C;