ilink-world/app/redux/actions/DepositAction.js

19 lines
452 B
JavaScript
Raw Permalink Normal View History

2020-05-03 09:16:24 +00:00
import { DEPOSIT_SUCCESS, DEPOSIT_ERROR, DEPOSIT_PENDING, DEPOSIT_RESET } from "../types/DepositType";
2020-04-24 15:11:08 +00:00
export const fetchDepositPending = () => ({
type: DEPOSIT_PENDING
});
export const fetchDepositSuccess = (res) => ({
type: DEPOSIT_SUCCESS,
result: res,
});
export const fetchDepositError = (error) => ({
type: DEPOSIT_ERROR,
result: error
2020-05-03 09:16:24 +00:00
});
export const fetchDepositReset = (error) => ({
type: DEPOSIT_RESET
2020-04-24 15:11:08 +00:00
});