52 lines
1.2 KiB
JavaScript
Executable File
52 lines
1.2 KiB
JavaScript
Executable File
import {
|
|
GET_BANK_LIST_ERROR,
|
|
GET_BANK_LIST_PENDING,
|
|
GET_BANK_LIST_RESET,
|
|
GET_BANK_LIST_SUCCESS
|
|
} from "../types/BankType";
|
|
import {
|
|
ENVOIE_WALLET_TO_BANK_USER_ERROR,
|
|
ENVOIE_WALLET_TO_BANK_USER_PENDING,
|
|
ENVOIE_WALLET_TO_BANK_USER_RESET,
|
|
ENVOIE_WALLET_TO_BANK_USER_SUCCESS
|
|
} from "../types/EnvoieUserType";
|
|
|
|
export const fetchGetBankListPending = () => ({
|
|
type: GET_BANK_LIST_PENDING
|
|
});
|
|
|
|
export const fetchGetBankListSucsess = (res) => ({
|
|
type: GET_BANK_LIST_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchGetBankListError = (error) => ({
|
|
type: GET_BANK_LIST_ERROR,
|
|
result: error
|
|
});
|
|
|
|
export const fetchGetBankListReset = () => ({
|
|
type: GET_BANK_LIST_RESET
|
|
});
|
|
|
|
|
|
export const fetchEnvoieWalletToBankUserPending = () => ({
|
|
type: ENVOIE_WALLET_TO_BANK_USER_PENDING
|
|
});
|
|
|
|
export const fetchEnvoieWalletToBankUserSucsess = (res) => ({
|
|
type: ENVOIE_WALLET_TO_BANK_USER_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchEnvoieWalletToBankUserError = (error) => ({
|
|
type: ENVOIE_WALLET_TO_BANK_USER_ERROR,
|
|
result: error
|
|
});
|
|
|
|
export const fetchEnvoieWalletToBankUserReset = () => ({
|
|
type: ENVOIE_WALLET_TO_BANK_USER_RESET
|
|
});
|
|
|
|
|