diff --git a/js/component/link.js b/js/component/link.js index 56429aefc..4a80ee830 100644 --- a/js/component/link.js +++ b/js/component/link.js @@ -25,9 +25,10 @@ export let Link = React.createClass({ return null; } + /* The way the class name is generated here is a mess -- refactor */ + const className = (this.props.className || '') + (this.props.button ? ' button-block button-' + this.props.button : '') + - (!this.props.className && !this.props.button ? 'button-text' : '') + (this.props.disabled ? ' disabled' : ''); let content; @@ -44,7 +45,7 @@ export let Link = React.createClass({ return ( - {this.props.button + {('button' in this.props) && this.props.button != 'text' ? {content} : content}