Enable object-shorthand rule (#1500)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-11-24 13:16:35 +02:00
1 parent 2a8cfe5e67
commit ff93760dc4
42 files changed
+69 -66

No files matched your search

+3 -3
View File
@@ -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 (