added functional duration/time selector

This commit is contained in:
Alexander Wong
2018-04-18 16:50:02 -06:00
parent 99dc3a9615
commit 0c8defd469
7 changed files with 190 additions and 25 deletions

View File

@@ -6,7 +6,9 @@ import {
CLEAR_CSHIFT_REQUEST_SUCCESS,
SET_FORM_EMPLOYEE_UUID,
SET_FORM_PRICE_UUID,
SET_CLEAR_CSHIFT_STATE
SET_CLEAR_CSHIFT_STATE,
SET_FORM_SHIFT_START_TIME,
SET_FORM_SHIFT_DURATION
} from "../../constants/cShift.constants";
import { parseError } from "../common.actions";
@@ -58,6 +60,20 @@ export function setFormPriceUUID(uuid) {
};
}
export function setFormShiftStartTime(startTime) {
return {
type: SET_FORM_SHIFT_START_TIME,
data: startTime
};
}
export function setFormShiftDuration(duration) {
return {
type: SET_FORM_SHIFT_DURATION,
data: duration
};
}
export function setClearCshiftState() {
return {
type: SET_CLEAR_CSHIFT_STATE