19 lines
616 B
JavaScript
19 lines
616 B
JavaScript
|
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
|
||
|
});
|