Merge pull request #312 from jackielii/dev

type -> getType as `type` seems to be a keyword in node 5.1
old
Javi Velasco 2016-02-12 14:05:25 +01:00
commit 5532ced3f1
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class ListItemContent extends React.Component {
type: React.PropTypes.oneOf(types)
};
type () {
getType () {
const {type, children, caption, legend} = this.props;
let count = React.Children.count(children);
@ -25,7 +25,7 @@ class ListItemContent extends React.Component {
render () {
const {children, caption, legend} = this.props;
const className = `${style.itemContentRoot} ${style[this.type()]}`;
const className = `${style.itemContentRoot} ${style[this.getType()]}`;
return (
<span className={className}>