graycoreio/daffodil

View on GitHub
libs/customer-auth/state/src/reducers/reducer-map.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ActionReducerMap } from '@ngrx/store';

import { DaffAuthActions } from '@daffodil/auth/state';
import { daffIdentityReducer } from '@daffodil/core/state';
import { DaffCustomerReducersState } from '@daffodil/customer/state';

import { daffCustomerAuthResetAddressEntitiesAfterLogoutReducer } from './address-entities.reducer';
import { daffCustomerAuthResetAfterLogoutReducer } from './customer.reducer';

export const daffCustomerAuthReducerMap: ActionReducerMap<DaffCustomerReducersState, DaffAuthActions> = {
  customer: daffCustomerAuthResetAfterLogoutReducer,
  address: daffIdentityReducer,
  addressEntities: daffCustomerAuthResetAddressEntitiesAfterLogoutReducer,
};