ilink-world/redux/actions/IdentificationAction.js

19 lines
616 B
JavaScript
Raw Normal View History

2020-06-12 11:13:59 +00:00
import { CREATE_IDENTIFICATION_PENDING, CREATE_IDENTIFICATION_SUCCESS, CREATE_IDENTIFICATION_ERROR, CREATE_IDENTIFICATION_RESET } from "../types/IdentificationType";
export const fetchCreateIdentificationPending = () => ({
type: CREATE_IDENTIFICATION_PENDING
});
export const fetchCreateIdentificationSuccess = (res) => ({
type: CREATE_IDENTIFICATION_SUCCESS,
result: res,
});
export const fetchCreateIdentificationError = (error) => ({
type: CREATE_IDENTIFICATION_ERROR,
result: error
});
export const fetchCreateIdentificationReset = () => ({
type: CREATE_IDENTIFICATION_RESET
});