1234567891011121314151617181920212223242526272829 |
- import { ReducerRegistry } from '../base/redux';
-
- import {
- SET_ENDPOINT_COUNTED
- } from './actionTypes';
-
- const DEFAULT_STATE = {
- endpointCounted: false
- };
-
- /**
- * Listen for actions that mutate the billing-counter state
- */
- ReducerRegistry.register(
- 'features/billing-counter', (state = DEFAULT_STATE, action) => {
- switch (action.type) {
-
- case SET_ENDPOINT_COUNTED: {
- return {
- ...state,
- endpointCounted: true
- };
- }
-
- default:
- return state;
- }
- },
- );
|