19 lines
504 B
JavaScript
19 lines
504 B
JavaScript
|
import { CREATE_GROUP_PENDING, CREATE_GROUP_SUCCESS, CREATE_GROUP_ERROR, CREATE_GROUP_RESET } from "../types/NanoCreditType";
|
||
|
|
||
|
export const fetchCreateGroupPending = () => ({
|
||
|
type: CREATE_GROUP_PENDING
|
||
|
});
|
||
|
|
||
|
export const fetchCreateGroupSuccess = (res) => ({
|
||
|
type: CREATE_GROUP_SUCCESS,
|
||
|
result: res,
|
||
|
});
|
||
|
|
||
|
export const fetchCreateGroupError = (error) => ({
|
||
|
type: CREATE_GROUP_ERROR,
|
||
|
result: error
|
||
|
});
|
||
|
|
||
|
export const fetchCreateGroupReset = () => ({
|
||
|
type: CREATE_GROUP_RESET
|
||
|
});
|