You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
422 B

  1. import {
  2. SET_BROWSER_SUPPORT,
  3. SET_SUBSCRIPTION,
  4. CLEAR_SUBSCRIPTION,
  5. SET_ALERTS,
  6. setAlerts,
  7. } from './setter';
  8. import { register, saveSettings } from './registerer';
  9. export {
  10. SET_BROWSER_SUPPORT,
  11. SET_SUBSCRIPTION,
  12. CLEAR_SUBSCRIPTION,
  13. SET_ALERTS,
  14. register,
  15. };
  16. export function changeAlerts(path, value) {
  17. return dispatch => {
  18. dispatch(setAlerts(path, value));
  19. dispatch(saveSettings());
  20. };
  21. }