Skip to content

Commit

Permalink
change key to path in timeline settings containers
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmartin committed Jan 9, 2018
1 parent 6d1c325 commit 0d4dcb5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},

});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},

});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},

});
Expand Down

0 comments on commit 0d4dcb5

Please sign in to comment.