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.

reducer.js 967B

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