您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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