Skip to content

Commit

Permalink
Pass linter errors for button
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Nov 23, 2015
1 parent 61ac76c commit 395ce5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion components/button/Button.jsx
@@ -1,3 +1,4 @@
/* eslint-disable no-redeclare */
import React from 'react';
import ClassNames from 'classnames';
import FontIcon from '../font_icon';
Expand All @@ -9,10 +10,12 @@ import events from '../utils/events';
class Button extends React.Component {
static propTypes = {
accent: React.PropTypes.bool,
children: React.PropTypes.node,
className: React.PropTypes.string,
disabled: React.PropTypes.bool,
flat: React.PropTypes.bool,
floating: React.PropTypes.bool,
href: React.PropTypes.string,
icon: React.PropTypes.string,
inverse: React.PropTypes.bool,
label: React.PropTypes.string,
Expand Down Expand Up @@ -55,7 +58,7 @@ class Button extends React.Component {
render () {
const {accent, className, flat, floating, href, icon, inverse, label,
loading, mini, primary, raised, ripple, toggle,
tooltip, tooltipDelay, ...others} = this.props; //eslint-disable-line no-redeclare
tooltip, tooltipDelay, ...others} = this.props;
const element = href ? 'a' : 'button';
const level = primary ? 'primary' : accent ? 'accent' : 'neutral';
const shape = flat ? 'flat' : raised ? 'raised' : floating ? 'floating' : toggle ? 'toggle' : 'flat';
Expand Down
2 changes: 1 addition & 1 deletion components/button/index.js
@@ -1 +1 @@
export default from './Button.jsx';
export default from './Button';

0 comments on commit 395ce5b

Please sign in to comment.