1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

resolve lint issues

This commit is contained in:
Sérgio Ramos 2016-10-27 10:51:47 +01:00
parent d9aa7b310a
commit b982e2f2e6
3 changed files with 26 additions and 15 deletions

View File

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

View File

@ -5,7 +5,7 @@ const styles = require('./style.css');
const Radio = ({
name,
value,
label,
children,
checked,
disabled = false,
className,
@ -20,27 +20,31 @@ const Radio = ({
);
return (
<label className={cn}>
<label className={cn} htmlFor={id}>
<input
name={name}
value={value}
disabled={disabled}
checked={checked}
disabled={disabled}
id={id}
name={name}
onChange={onChange}
type="radio"
type='radio'
value={value}
/>
<span>{label}</span>
<span>{children}</span>
</label>
);
};
Radio.propTypes = {
className: React.PropTypes.string,
name: React.PropTypes.string,
value: React.PropTypes.string,
label: React.PropTypes.string,
checked: React.PropTypes.bool,
onChange: React.PropTypes.func
children: React.PropTypes.node,
className: React.PropTypes.string,
disabled: React.PropTypes.bool,
id: React.PropTypes.string,
name: React.PropTypes.string,
onChange: React.PropTypes.func,
style: React.PropTypes.object,
value: React.PropTypes.string
};
module.exports = Radio;

View File

@ -5,7 +5,6 @@ module.exports = {
Column: require('./components/column'),
Container: require('./components/container'),
Row: require('./components/row'),
Toggle: require('./components/toggle'),
Tab: require('./components/tab'),
Tabs: require('./components/tabs'),
Toggle: require('./components/toggle'),