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 488B

12345678910111213141516171819202122
  1. // @flow
  2. import { ReducerRegistry } from '../base/redux';
  3. import { PersistenceRegistry } from '../base/storage';
  4. import { SET_TILE_VIEW } from './actionTypes';
  5. const STORE_NAME = 'features/video-layout';
  6. PersistenceRegistry.register(STORE_NAME);
  7. ReducerRegistry.register(STORE_NAME, (state = {}, action) => {
  8. switch (action.type) {
  9. case SET_TILE_VIEW:
  10. return {
  11. ...state,
  12. tileViewEnabled: action.enabled
  13. };
  14. }
  15. return state;
  16. });