File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- import React , { PropTypes } from 'react' ;
1
+ import React , { PropTypes , Component } from 'react' ;
2
2
import cx from 'classnames' ;
3
3
import Tab from './Tab' ;
4
4
@@ -20,18 +20,17 @@ function renderChildren(props) {
20
20
} ) ;
21
21
}
22
22
23
- module . exports = React . createClass ( {
24
- displayName : 'TabList' ,
23
+ class TabList extends Component {
25
24
26
- propTypes : {
25
+ static propTypes = {
27
26
className : PropTypes . string ,
28
27
activeTabClassName : PropTypes . string ,
29
28
disabledTabClassName : PropTypes . string ,
30
29
children : PropTypes . oneOfType ( [
31
30
PropTypes . object ,
32
31
PropTypes . array ,
33
32
] ) ,
34
- } ,
33
+ } ;
35
34
36
35
render ( ) {
37
36
const {
@@ -53,5 +52,7 @@ module.exports = React.createClass({
53
52
{ renderChildren ( { activeTabClassName, disabledTabClassName, children } ) }
54
53
</ ul >
55
54
) ;
56
- } ,
57
- } ) ;
55
+ }
56
+ }
57
+
58
+ export default TabList ;
You can’t perform that action at this time.
0 commit comments