change key to path in timeline settings containers

master
cwm 7 years ago
parent 6d1c325167
commit 0d4dcb5fb2
  1. 4
      app/javascript/flavours/glitch/features/community_timeline/containers/column_settings_container.js
  2. 4
      app/javascript/flavours/glitch/features/direct_timeline/containers/column_settings_container.js
  3. 4
      app/javascript/flavours/glitch/features/home_timeline/containers/column_settings_container.js
  4. 4
      app/javascript/flavours/glitch/features/public_timeline/containers/column_settings_container.js

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

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

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

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

Loading…
Cancel
Save