All files / reducers NotificationReducer.js

0% Statements 0/11
0% Branches 0/8
0% Functions 0/1
0% Lines 0/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                               
import { request, invalidate, receive, initState } from '../boilerplate';
import { REQUEST_NOTIFICATIONS, RECEIVE_NOTIFICATIONS, INVALIDATE_NOTIFICATIONS } from '../actionTypes';
 
export default function(state = initState, action) {
  switch (action.type) {
    case REQUEST_NOTIFICATIONS:
      return request(state, action);
    case RECEIVE_NOTIFICATIONS:
      return receive(state, action);
    case INVALIDATE_NOTIFICATIONS:
      return invalidate(state, action);
    default:
      return state;
  }
}