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 11import React from 'react' ;
22import Sortable from '../../src' ;
3- import store from './store' ;
43
54const sortableOptions = {
65 ref : 'list' ,
@@ -12,10 +11,9 @@ const sortableOptions = {
1211} ;
1312
1413@Sortable ( sortableOptions )
15- export default class SharedGroup extends React . Component {
14+ class SharedGroup extends React . Component {
1615 static propTypes = {
17- items : React . PropTypes . array ,
18- onChange : React . PropTypes . func
16+ items : React . PropTypes . array
1917 } ;
2018
2119 render ( ) {
@@ -28,3 +26,5 @@ export default class SharedGroup extends React.Component {
2826 ) ;
2927 }
3028}
29+
30+ export default SharedGroup ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import Sortable from '../../src' ;
3- import store from './store' ;
43
54const sortableOptions = {
65 ref : 'list'
76} ;
87
98@Sortable ( sortableOptions )
10- export default class SimpleList extends React . Component {
9+ class SimpleList extends React . Component {
1110 static propTypes = {
12- items : React . PropTypes . array ,
13- onChange : React . PropTypes . func
11+ items : React . PropTypes . array
1412 } ;
1513
1614 render ( ) {
1715 const items = this . props . items . map ( ( text , index ) => (
1816 < li key = { index } > List Item { text } </ li >
1917 ) ) ;
20-
18+
2119 return (
2220 < ul ref = "list" className = "block-list" > { items } </ ul >
2321 ) ;
2422 }
25- }
23+ } ;
24+
25+ export default SimpleList ;
You can’t perform that action at this time.
0 commit comments