resolve lint issues
This commit is contained in:
parent
d9aa7b310a
commit
b982e2f2e6
@ -24,10 +24,18 @@ module.exports = () => {
|
|||||||
<Base>
|
<Base>
|
||||||
<Container fluid>
|
<Container fluid>
|
||||||
<Row>
|
<Row>
|
||||||
<Column md={2} sm={3} xs={12}>
|
<Column
|
||||||
|
md={2}
|
||||||
|
sm={3}
|
||||||
|
xs={12}
|
||||||
|
>
|
||||||
<Navigation />
|
<Navigation />
|
||||||
</Column>
|
</Column>
|
||||||
<Column md={10} sm={9} xs={12}>
|
<Column
|
||||||
|
md={10}
|
||||||
|
sm={9}
|
||||||
|
xs={12}
|
||||||
|
>
|
||||||
<Match
|
<Match
|
||||||
component={Home}
|
component={Home}
|
||||||
exactly
|
exactly
|
||||||
|
@ -5,7 +5,7 @@ const styles = require('./style.css');
|
|||||||
const Radio = ({
|
const Radio = ({
|
||||||
name,
|
name,
|
||||||
value,
|
value,
|
||||||
label,
|
children,
|
||||||
checked,
|
checked,
|
||||||
disabled = false,
|
disabled = false,
|
||||||
className,
|
className,
|
||||||
@ -20,27 +20,31 @@ const Radio = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<label className={cn}>
|
<label className={cn} htmlFor={id}>
|
||||||
<input
|
<input
|
||||||
name={name}
|
|
||||||
value={value}
|
|
||||||
disabled={disabled}
|
|
||||||
checked={checked}
|
checked={checked}
|
||||||
|
disabled={disabled}
|
||||||
|
id={id}
|
||||||
|
name={name}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
type="radio"
|
type='radio'
|
||||||
|
value={value}
|
||||||
/>
|
/>
|
||||||
<span>{label}</span>
|
<span>{children}</span>
|
||||||
</label>
|
</label>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
Radio.propTypes = {
|
Radio.propTypes = {
|
||||||
className: React.PropTypes.string,
|
|
||||||
name: React.PropTypes.string,
|
|
||||||
value: React.PropTypes.string,
|
|
||||||
label: React.PropTypes.string,
|
|
||||||
checked: React.PropTypes.bool,
|
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;
|
module.exports = Radio;
|
||||||
|
@ -5,7 +5,6 @@ module.exports = {
|
|||||||
Column: require('./components/column'),
|
Column: require('./components/column'),
|
||||||
Container: require('./components/container'),
|
Container: require('./components/container'),
|
||||||
Row: require('./components/row'),
|
Row: require('./components/row'),
|
||||||
Toggle: require('./components/toggle'),
|
|
||||||
Tab: require('./components/tab'),
|
Tab: require('./components/tab'),
|
||||||
Tabs: require('./components/tabs'),
|
Tabs: require('./components/tabs'),
|
||||||
Toggle: require('./components/toggle'),
|
Toggle: require('./components/toggle'),
|
||||||
|
Loading…
Reference in New Issue
Block a user