Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

reducer.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. import { ReducerRegistry } from '../base/redux';
  2. import {
  3. DISMISS_MOBILE_APP_PROMO,
  4. SET_UNSUPPORTED_BROWSER
  5. } from './actionTypes';
  6. ReducerRegistry.register(
  7. 'features/unsupported-browser',
  8. (state = {}, action) => {
  9. switch (action.type) {
  10. case DISMISS_MOBILE_APP_PROMO:
  11. return {
  12. ...state,
  13. /**
  14. * The indicator which determines whether the React
  15. * Component UnsupportedMobileBrowser which was rendered as
  16. * a promotion of the mobile app on a browser was dismissed
  17. * by the user. If unused, then we have chosen to force the
  18. * mobile app and not allow the Web app in mobile browsers.
  19. *
  20. * @type {boolean}
  21. */
  22. mobileAppPromoDismissed: true
  23. };
  24. case SET_UNSUPPORTED_BROWSER:
  25. return {
  26. ...state,
  27. ...action.unsupportedBrowser
  28. };
  29. }
  30. return state;
  31. });