logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

index.js (422B)


  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. }