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.

1234567891011121314151617181920212223242526
  1. // @flow
  2. import { ReducerRegistry } from '../base/redux';
  3. import { BLUR_ENABLED, BLUR_DISABLED } from './actionTypes';
  4. ReducerRegistry.register('features/blur', (state = {}, action) => {
  5. switch (action.type) {
  6. case BLUR_ENABLED: {
  7. return {
  8. ...state,
  9. blurEnabled: true
  10. };
  11. }
  12. case BLUR_DISABLED: {
  13. return {
  14. ...state,
  15. blurEnabled: false
  16. };
  17. }
  18. }
  19. return state;
  20. });