Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions client/components/button/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,17 @@ export default React.createClass( {
},

render() {
const { compact, primary, scary, borderless, ...htmlProps } = this.props;
const element = this.props.href ? 'a' : 'button';
const buttonClasses = classNames( {
'dops-button': true,
'is-compact': this.props.compact,
'is-primary': this.props.primary,
'is-scary': this.props.scary,
'is-borderless': this.props.borderless
'is-compact': compact,
'is-primary': primary,
'is-scary': scary,
'is-borderless': borderless
} );

const props = assign( {}, this.props, {
const props = assign( {}, htmlProps, {
className: classNames( this.props.className, buttonClasses )
} );

Expand Down