Working delete shifts functionality

This commit is contained in:
Alexander Wong
2018-04-22 22:10:46 -06:00
parent 4f548d529f
commit 2b15495072
10 changed files with 177 additions and 34 deletions

View File

@@ -2,7 +2,8 @@ import {
CREATE_MULTIPLE_CSHIFT_REQUEST,
GET_CSHIFTS_REQUEST,
GET_CSHIFT_REQUEST,
EDIT_CSHIFT_REQUEST
EDIT_CSHIFT_REQUEST,
DELETE_CSHIFT_REQUEST
} from "../../constants/cShift.constants";
/**
@@ -36,3 +37,10 @@ export function editCShiftRequest(payload) {
data: payload
}
}
export function deleteCShiftRequest(uuid) {
return {
type: DELETE_CSHIFT_REQUEST,
data: uuid
}
}