mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 10:39:09 +00:00
chore: modernize deps
This commit is contained in:
parent
b1ccf1e425
commit
36af7ac8f2
17 changed files with 20495 additions and 15406 deletions
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue