Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

reducer.js 658B

1234567891011121314151617181920212223
  1. import { ReducerRegistry } from '../base/redux';
  2. import { MOBILE_BROWSER_PAGE_IS_SHOWN } from './actionTypes';
  3. ReducerRegistry.register(
  4. 'features/unsupported-browser',
  5. (state = {}, action) => {
  6. switch (action.type) {
  7. case MOBILE_BROWSER_PAGE_IS_SHOWN:
  8. return {
  9. ...state,
  10. /**
  11. * Flag that shows that mobile browser page is shown.
  12. *
  13. * @type {boolean}
  14. */
  15. mobileBrowserPageIsShown: true
  16. };
  17. }
  18. return state;
  19. });