chore: modernize deps

This commit is contained in:
Katie Thornhill 2019-11-19 23:56:52 -05:00
parent b1ccf1e425
commit 36af7ac8f2
No known key found for this signature in database
GPG key ID: F76EDC6541A99644
17 changed files with 20495 additions and 15406 deletions

View file

@ -1,19 +1,8 @@
import React, { Component } from 'react'
import { DragSource } from 'react-dnd'
import Role from './index'
// @DragSource(Symbol.for('dnd: role'), {
// beginDrag ({ role, categoryId }) {
// return { role, category: categoryId }
// }
// },
// (connect, monitor) => ({
// connectDragSource: connect.dragSource(),
// isDragging: monitor.isDragging()
// }))
export default
@DragSource(
const dragSource = DragSource(
Symbol.for('dnd: role'),
{
beginDrag({ role, categoryId }) {
@ -25,8 +14,11 @@ export default
isDragging: monitor.isDragging(),
})
)
class DraggableRole extends Component {
render() {
return <Role {...this.props} type="drag" />
}
}
export default dragSource(DraggableRole)