progress
This commit is contained in:
@@ -16,6 +16,14 @@ export default class SettingSwitch extends ImmutablePureComponent {
|
||||
onChange: PropTypes.func.isRequired,
|
||||
}
|
||||
|
||||
updateOnProps = [
|
||||
'prefix',
|
||||
'settings',
|
||||
'settingPath',
|
||||
'description',
|
||||
'label',
|
||||
]
|
||||
|
||||
onChange = ({ target }) => {
|
||||
this.props.onChange(this.props.settingPath, target.checked)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user