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

12345678910111213141516171819202122232425262728
  1. import { ReducerRegistry } from '../base/redux';
  2. import {
  3. SET_DETAILS
  4. } from './actionTypes';
  5. import { STATUSES } from './constants';
  6. const DEFAULT_STATE = {
  7. disabledFeatures: [],
  8. status: STATUSES.ACTIVE
  9. };
  10. /**
  11. * Listen for actions that mutate the billing-counter state
  12. */
  13. ReducerRegistry.register(
  14. 'features/jaas', (state = DEFAULT_STATE, action) => {
  15. switch (action.type) {
  16. case SET_DETAILS: {
  17. return action.payload;
  18. }
  19. default:
  20. return state;
  21. }
  22. },
  23. );