fix lint issues

This commit is contained in:
Sérgio Ramos 2016-10-26 14:44:17 +01:00
parent f55b26d9a9
commit 35cd24eb60
3 changed files with 10 additions and 8 deletions

View File

@ -24,10 +24,10 @@ module.exports = () => {
<Base> <Base>
<Container fluid> <Container fluid>
<Row> <Row>
<Column xs={12} md={2}> <Column md={2} xs={12}>
<Navigation /> <Navigation />
</Column> </Column>
<Column xs={12} md={10}> <Column md={10} xs={12}>
<Match <Match
component={Home} component={Home}
exactly exactly

View File

@ -1,4 +1,3 @@
const classNames = require('classnames');
const paramCase = require('param-case'); const paramCase = require('param-case');
const React = require('react'); const React = require('react');
const ReactRouter = require('react-router'); const ReactRouter = require('react-router');

View File

@ -7,6 +7,7 @@ const Checkbox = ({
className, className,
children, children,
disabled = false, disabled = false,
id,
onChange, onChange,
style style
}) => { }) => {
@ -18,13 +19,14 @@ const Checkbox = ({
); );
return ( return (
<label className={styles.label}> <label className={styles.label} htmlFor={id}>
<input <input
className={cn}
style={style}
checked={checked} checked={checked}
onChange={onChange} className={cn}
disabled={disabled} disabled={disabled}
id={id}
onChange={onChange}
style={style}
type='checkbox' type='checkbox'
/> />
<span>{children}</span> <span>{children}</span>
@ -33,10 +35,11 @@ const Checkbox = ({
}; };
Checkbox.propTypes = { Checkbox.propTypes = {
checked: React.PropTypes.bool,
children: React.PropTypes.node, children: React.PropTypes.node,
className: React.PropTypes.string, className: React.PropTypes.string,
checked: React.PropTypes.bool,
disabled: React.PropTypes.bool, disabled: React.PropTypes.bool,
id: React.PropTypes.string,
onChange: React.PropTypes.func, onChange: React.PropTypes.func,
style: React.PropTypes.object style: React.PropTypes.object
}; };