File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import Sortable from '../../src' ;
3
- import store from './store' ;
4
3
5
4
const sortableOptions = {
6
5
ref : 'list' ,
@@ -12,10 +11,9 @@ const sortableOptions = {
12
11
} ;
13
12
14
13
@Sortable ( sortableOptions )
15
- export default class SharedGroup extends React . Component {
14
+ class SharedGroup extends React . Component {
16
15
static propTypes = {
17
- items : React . PropTypes . array ,
18
- onChange : React . PropTypes . func
16
+ items : React . PropTypes . array
19
17
} ;
20
18
21
19
render ( ) {
@@ -28,3 +26,5 @@ export default class SharedGroup extends React.Component {
28
26
) ;
29
27
}
30
28
}
29
+
30
+ export default SharedGroup ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import Sortable from '../../src' ;
3
- import store from './store' ;
4
3
5
4
const sortableOptions = {
6
5
ref : 'list'
7
6
} ;
8
7
9
8
@Sortable ( sortableOptions )
10
- export default class SimpleList extends React . Component {
9
+ class SimpleList extends React . Component {
11
10
static propTypes = {
12
- items : React . PropTypes . array ,
13
- onChange : React . PropTypes . func
11
+ items : React . PropTypes . array
14
12
} ;
15
13
16
14
render ( ) {
17
15
const items = this . props . items . map ( ( text , index ) => (
18
16
< li key = { index } > List Item { text } </ li >
19
17
) ) ;
20
-
18
+
21
19
return (
22
20
< ul ref = "list" className = "block-list" > { items } </ ul >
23
21
) ;
24
22
}
25
- }
23
+ } ;
24
+
25
+ export default SimpleList ;
You can’t perform that action at this time.
0 commit comments