UNPKG

@git-temporal/git-temporal-react

Version:

<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

22 lines (19 loc) 513 B
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; };