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

12345678910111213141516171819202122
  1. import { ReducerRegistry } from '../base/redux';
  2. import {
  3. SET_FILMSTRIP_VISIBILITY
  4. } from './actionTypes';
  5. const DEFAULT_STATE = {
  6. visible: true
  7. };
  8. ReducerRegistry.register(
  9. 'features/filmstrip',
  10. (state = DEFAULT_STATE, action) => {
  11. switch (action.type) {
  12. case SET_FILMSTRIP_VISIBILITY:
  13. return {
  14. ...state,
  15. visible: action.visible
  16. };
  17. }
  18. return state;
  19. });