mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 10:39:09 +00:00
modernize dependencies
This commit is contained in:
parent
ea51d94c16
commit
5a1fc526db
22 changed files with 8578 additions and 22658 deletions
|
@ -3,16 +3,29 @@ 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 class DraggableRole extends Component {
|
||||
// @DragSource(Symbol.for('dnd: role'), {
|
||||
// beginDrag ({ role, categoryId }) {
|
||||
// return { role, category: categoryId }
|
||||
// }
|
||||
// },
|
||||
// (connect, monitor) => ({
|
||||
// connectDragSource: connect.dragSource(),
|
||||
// isDragging: monitor.isDragging()
|
||||
// }))
|
||||
export default
|
||||
@DragSource(
|
||||
Symbol.for('dnd: role'),
|
||||
{
|
||||
beginDrag ({ role, categoryId }) {
|
||||
return { role, category: categoryId }
|
||||
}
|
||||
},
|
||||
(connect, monitor) => ({
|
||||
connectDragSource: connect.dragSource(),
|
||||
isDragging: monitor.isDragging()
|
||||
})
|
||||
)
|
||||
class DraggableRole extends Component {
|
||||
render () {
|
||||
return <Role {...this.props} type='drag' />
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue