added functional duration/time selector
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user