Upgrade ESlint to v8 (#23305)
This commit is contained in:
1 parent
b58bf74e35
commit
c49213f0ea
120 files changed
+832
-810
No files matched your search
@@ -13,11 +13,11 @@ export default class SettingToggle extends React.PureComponent {
|
||||
onChange: PropTypes.func.isRequired,
|
||||
defaultValue: PropTypes.bool,
|
||||
disabled: PropTypes.bool,
|
||||
}
|
||||
};
|
||||
|
||||
onChange = ({ target }) => {
|
||||
this.props.onChange(this.props.settingPath, target.checked);
|
||||
}
|
||||
};
|
||||
|
||||
render () {
|
||||
const { prefix, settings, settingPath, label, defaultValue, disabled } = this.props;
|
||||
|
||||
Reference in new issue
Block a user