File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
- import SortableTree , { toggleExpandedForAll } from '../../src/index' ;
2
+ import { SortableTreeWithoutDndContext as SortableTree , toggleExpandedForAll } from '../../src/index' ;
3
3
import styles from './stylesheets/app.scss' ;
4
4
import '../shared/favicon/apple-touch-icon.png' ;
5
5
import '../shared/favicon/favicon-16x16.png' ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import ReactDOM from 'react-dom' ;
3
3
import { AppContainer } from 'react-hot-loader' ; // eslint-disable-line import/no-extraneous-dependencies
4
+ import { DragDropContext as dragDropContext } from 'react-dnd' ;
5
+ import HTML5Backend from 'react-dnd-html5-backend' ;
4
6
5
7
const rootEl = document . getElementById ( 'app' ) ;
6
8
const render = Component => {
9
+ const wrap = dragDropContext ( HTML5Backend ) ;
10
+ const Wrapped = wrap ( Component ) ;
7
11
ReactDOM . render (
8
12
< AppContainer >
9
- < Component />
13
+ < Wrapped />
10
14
</ AppContainer > ,
11
15
rootEl
12
16
) ;
You can’t perform that action at this time.
0 commit comments