mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enable object-shorthand rule (#1500)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
2a8cfe5e67
commit
ff93760dc4
42 files changed
+69
-66
No files matched your search
@@ -24,10 +24,10 @@ export class RadioGroup extends React.Component<RadioGroupProps, {}> {
|
||||
<div className={className}>
|
||||
{radios.map(radio => {
|
||||
return React.cloneElement(radio, {
|
||||
name: name,
|
||||
name,
|
||||
disabled: disabled !== undefined ? disabled : radio.props.disabled,
|
||||
checked: radio.props.value === value,
|
||||
onChange: onChange
|
||||
onChange
|
||||
} as any);
|
||||
})}
|
||||
</div>
|
||||
@@ -66,7 +66,7 @@ export class Radio extends React.Component<RadioProps> {
|
||||
render() {
|
||||
const { className, label, checked, children, ...inputProps } = this.props;
|
||||
const componentClass = cssNames('Radio flex align-center', className, {
|
||||
checked: checked,
|
||||
checked,
|
||||
disabled: this.props.disabled,
|
||||
});
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user