diff --git a/app/soapbox/features/preferences/index.js b/app/soapbox/features/preferences/index.js index 97225ceee..5a244a27e 100644 --- a/app/soapbox/features/preferences/index.js +++ b/app/soapbox/features/preferences/index.js @@ -33,10 +33,11 @@ class Preferences extends ImmutablePureComponent { settings: ImmutablePropTypes.map, }; - onThemeChange = e => { - const { dispatch } = this.props; - dispatch(changeSetting(['themeMode'], e.target.value)); - } + onSelectChange = path => { + return e => { + this.props.dispatch(changeSetting(path, e.target.value)); + }; + }; onDefaultPrivacyChange = e => { const { dispatch } = this.props; @@ -51,10 +52,19 @@ class Preferences extends ImmutablePureComponent { + + + +