Skip to content

Commit 51905df

Browse files
committed
add tab list
1 parent 51525b7 commit 51905df

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/components/TabList.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { PropTypes } from 'react';
1+
import React, { PropTypes, Component } from 'react';
22
import cx from 'classnames';
33
import Tab from './Tab';
44

@@ -20,18 +20,17 @@ function renderChildren(props) {
2020
});
2121
}
2222

23-
module.exports = React.createClass({
24-
displayName: 'TabList',
23+
class TabList extends Component {
2524

26-
propTypes: {
25+
static propTypes = {
2726
className: PropTypes.string,
2827
activeTabClassName: PropTypes.string,
2928
disabledTabClassName: PropTypes.string,
3029
children: PropTypes.oneOfType([
3130
PropTypes.object,
3231
PropTypes.array,
3332
]),
34-
},
33+
};
3534

3635
render() {
3736
const {
@@ -53,5 +52,7 @@ module.exports = React.createClass({
5352
{renderChildren({ activeTabClassName, disabledTabClassName, children })}
5453
</ul>
5554
);
56-
},
57-
});
55+
}
56+
}
57+
58+
export default TabList;

0 commit comments

Comments
 (0)