[Ivan Diaz] - Remove tab character

This commit is contained in:
Ivan Diaz 2015-08-28 21:37:30 -03:00
parent 7016f342d0
commit e0cf09eede
2 changed files with 43 additions and 43 deletions

View File

@ -8,37 +8,37 @@ import classNames from 'classnames';
var Button = React.createClass({
propTypes: {
children: React.PropTypes.node,
type: React.PropTypes.oneOf([
'primary'
])
},
propTypes: {
children: React.PropTypes.node,
type: React.PropTypes.oneOf([
'primary'
])
},
getDefaultProps() {
return {
type: 'primary'
};
},
getDefaultProps() {
return {
type: 'primary'
};
},
render() {
return (
<button {...this.props} className={this.getClass()}>
{this.props.children}
</button>
);
},
render() {
return (
<button {...this.props} className={this.getClass()}>
{this.props.children}
</button>
);
},
getClass() {
var classes = {
'button': true
};
getClass() {
var classes = {
'button': true
};
classes['button-' + this.props.type] = (this.props.type);
classes[this.props.className] = (this.props.className);
classes['button-' + this.props.type] = (this.props.type);
classes[this.props.className] = (this.props.className);
return classNames(classes);
}
return classNames(classes);
}
});
export default Button;

View File

@ -2,27 +2,27 @@ import React from 'react/addons';
import classNames from 'classnames';
var Widget = React.createClass({
propTypes: {
children: React.PropTypes.node.isRequired
},
propTypes: {
children: React.PropTypes.node.isRequired
},
render() {
return (
<div className={this.getClass()}>
{this.props.children}
</div>
);
},
render() {
return (
<div className={this.getClass()}>
{this.props.children}
</div>
);
},
getClass() {
var classes = {
'widget': true
};
getClass() {
var classes = {
'widget': true
};
classes[this.props.className] = (this.props.className);
classes[this.props.className] = (this.props.className);
return classNames(classes);
}
return classNames(classes);
}
});
export default Widget;