@ -8,8 +8,8 @@ const mapStateToProps = state => ({
const mapDispatchToProps = dispatch => ({
onChange (key, checked) {
onChange (path, checked) {
dispatch(changeSetting(['community', ...key], checked));
dispatch(changeSetting(['community', ...path], checked));
},
});
dispatch(changeSetting(['direct', ...key], checked));
dispatch(changeSetting(['direct', ...path], checked));
dispatch(changeSetting(['home', ...key], checked));
dispatch(changeSetting(['home', ...path], checked));
onSave () {
dispatch(changeSetting(['public', ...key], checked));
dispatch(changeSetting(['public', ...path], checked));