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 (21 loc) 679 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ActionTypes_1 = require("app/actions/ActionTypes"); exports.startDate = (state = null, action) => { switch (action.type) { case ActionTypes_1.ActionTypes.REQUEST_COMMITS: return null; case ActionTypes_1.ActionTypes.SET_START_DATE: return action.startDate; } return state; }; exports.endDate = (state = null, action) => { switch (action.type) { case ActionTypes_1.ActionTypes.REQUEST_COMMITS: return null; case ActionTypes_1.ActionTypes.SET_END_DATE: return action.endDate; } return state; };