MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/reducers/agendaItemHistory/agendaItemHistory.js

Summary

Maintainability
A
0 mins
Test Coverage
D
66%
export function aihHasErrored(state = false, action) {
  switch (action.type) {
    case 'AIH_HAS_ERRORED':
      return action.hasErrored;
    default:
      return state;
  }
}
export function aihIsLoading(state = false, action) {
  switch (action.type) {
    case 'AIH_IS_LOADING':
      return action.isLoading;
    default:
      return state;
  }
}
export function aih(state = [], action) {
  switch (action.type) {
    case 'AIH_FETCH_DATA_SUCCESS':
      return action.data;
    default:
      return state;
  }
}