From 395ce5be4676b015a246f3f80aed1420789a1d74 Mon Sep 17 00:00:00 2001 From: Javi Velasco Date: Mon, 23 Nov 2015 20:38:44 +0100 Subject: [PATCH] Pass linter errors for button --- components/button/Button.jsx | 5 ++++- components/button/index.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/button/Button.jsx b/components/button/Button.jsx index 48a92256..571e9e88 100644 --- a/components/button/Button.jsx +++ b/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'; @@ -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, @@ -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'; diff --git a/components/button/index.js b/components/button/index.js index 7a4ebccc..a546486c 100644 --- a/components/button/index.js +++ b/components/button/index.js @@ -1 +1 @@ -export default from './Button.jsx'; +export default from './Button';