All files / app/reducers dates.ts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22    12x 53x           53x     12x 53x           53x    
import { ActionTypes } from 'app/actions/ActionTypes';
 
export const startDate = (state = null, action: any) => {
  switch (action.type) {
    case ActionTypes.REQUEST_COMMITS:
      return null;
    case ActionTypes.SET_START_DATE:
      return action.startDate;
  }
  return state;
};
 
export const endDate = (state = null, action: any) => {
  switch (action.type) {
    case ActionTypes.REQUEST_COMMITS:
      return null;
    case ActionTypes.SET_END_DATE:
      return action.endDate;
  }
  return state;
};