-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6364 update settings after menu changes (#6372)
* update redux from recoil * remove old navlinks actions * e2e for menu updates
- Loading branch information
Showing
5 changed files
with
23 additions
and
177 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
106 changes: 0 additions & 106 deletions
106
app/react/Settings/actions/specs/navlinksActions.spec.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
import { atom } from 'recoil'; | ||
import { ClientSettings } from 'app/apiResponseTypes'; | ||
import { store } from 'app/store'; | ||
|
||
const settingsAtom = atom({ | ||
key: 'settings', | ||
default: {} as ClientSettings, | ||
//sync deprecated redux store | ||
effects: [ | ||
({ onSet }) => { | ||
onSet(newValue => { | ||
store?.dispatch({ type: 'settings/collection/SET', value: newValue }); | ||
}); | ||
}, | ||
], | ||
}); | ||
|
||
export { settingsAtom }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters