2020-08-19 06:25:24 +00:00
|
|
|
import { CREATE_GROUP_PENDING, CREATE_GROUP_SUCCESS, CREATE_GROUP_ERROR, CREATE_GROUP_RESET, GET_DEMAND_GROUP_PENDING, GET_DEMAND_GROUP_SUCCESS, GET_DEMAND_GROUP_ERROR, GET_DEMAND_GROUP_RESET, GET_UNIQUE_DEMAND_GROUP_PENDING, GET_UNIQUE_DEMAND_GROUP_RESET, GET_UNIQUE_DEMAND_GROUP_ERROR, GET_UNIQUE_DEMAND_GROUP_SUCCESS, TREAT_DEMAND_GROUP_PENDING, TREAT_DEMAND_GROUP_SUCCESS, TREAT_DEMAND_GROUP_ERROR, TREAT_DEMAND_GROUP_RESET, JOIN_GROUP_PENDING, JOIN_GROUP_SUCCESS, JOIN_GROUP_RESET, JOIN_GROUP_ERROR } from "../types/NanoCreditType";
|
2020-08-11 09:42:31 +00:00
|
|
|
|
|
|
|
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
|
2020-08-12 18:24:56 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetDemandsGroupPending = () => ({
|
|
|
|
type: GET_DEMAND_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetDemandsGroupSuccess = (res) => ({
|
|
|
|
type: GET_DEMAND_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetDemandsGroupError = (error) => ({
|
|
|
|
type: GET_DEMAND_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetDemandsGroupReset = () => ({
|
|
|
|
type: GET_DEMAND_GROUP_RESET
|
2020-08-13 05:17:57 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUniqueDemandsGroupPending = () => ({
|
|
|
|
type: GET_UNIQUE_DEMAND_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUniqueDemandsGroupSuccess = (res) => ({
|
|
|
|
type: GET_UNIQUE_DEMAND_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUniqueDemandsGroupError = (error) => ({
|
|
|
|
type: GET_UNIQUE_DEMAND_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetUniqueDemandsGroupReset = () => ({
|
|
|
|
type: GET_UNIQUE_DEMAND_GROUP_RESET
|
2020-08-13 07:23:23 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchTreatDemandsGroupPending = () => ({
|
|
|
|
type: TREAT_DEMAND_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchTreatDemandsGroupSuccess = (res) => ({
|
|
|
|
type: TREAT_DEMAND_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchTreatDemandsGroupError = (error) => ({
|
|
|
|
type: TREAT_DEMAND_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchTreatDemandsGroupReset = () => ({
|
|
|
|
type: TREAT_DEMAND_GROUP_RESET
|
2020-08-19 06:25:24 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export const fetchJoinGroupPending = () => ({
|
|
|
|
type: JOIN_GROUP_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchJoinGroupSuccess = (res) => ({
|
|
|
|
type: JOIN_GROUP_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchJoinGroupError = (error) => ({
|
|
|
|
type: JOIN_GROUP_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchJoinGroupReset = () => ({
|
|
|
|
type: JOIN_GROUP_RESET
|
2020-08-11 09:42:31 +00:00
|
|
|
});
|