This commit is contained in:
mgabdev
2020-05-03 01:22:49 -04:00
parent 196a906cec
commit 055b5a430f
85 changed files with 1110 additions and 1051 deletions

View File

@@ -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)
}