mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 02:18:07 +01:00
change key to path in timeline settings containers
This commit is contained in:
parent
6d1c325167
commit
0d4dcb5fb2
4 changed files with 8 additions and 8 deletions
|
@ -8,8 +8,8 @@ const mapStateToProps = state => ({
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
|
|
||||||
onChange (key, checked) {
|
onChange (path, checked) {
|
||||||
dispatch(changeSetting(['community', ...key], checked));
|
dispatch(changeSetting(['community', ...path], checked));
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,8 +8,8 @@ const mapStateToProps = state => ({
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
|
|
||||||
onChange (key, checked) {
|
onChange (path, checked) {
|
||||||
dispatch(changeSetting(['direct', ...key], checked));
|
dispatch(changeSetting(['direct', ...path], checked));
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,8 +8,8 @@ const mapStateToProps = state => ({
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
|
|
||||||
onChange (key, checked) {
|
onChange (path, checked) {
|
||||||
dispatch(changeSetting(['home', ...key], checked));
|
dispatch(changeSetting(['home', ...path], checked));
|
||||||
},
|
},
|
||||||
|
|
||||||
onSave () {
|
onSave () {
|
||||||
|
|
|
@ -8,8 +8,8 @@ const mapStateToProps = state => ({
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
|
|
||||||
onChange (key, checked) {
|
onChange (path, checked) {
|
||||||
dispatch(changeSetting(['public', ...key], checked));
|
dispatch(changeSetting(['public', ...path], checked));
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue