Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b96e8a3ed5 | |||
| f3226a6cfc | |||
| ff4c503100 | |||
| f543a2d893 | |||
| 41badd52be |
@@ -175,7 +175,7 @@ export default function MyJobTable({ MyJobList, reloadJobList, className }) {
|
|||||||
}}
|
}}
|
||||||
className="w-20 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white"
|
className="w-20 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white"
|
||||||
>
|
>
|
||||||
Manage
|
Assign
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ function AddFundPop({
|
|||||||
</h1>
|
</h1>
|
||||||
<div className="field w-full max-w-[250px]">
|
<div className="field w-full max-w-[250px]">
|
||||||
<InputCom
|
<InputCom
|
||||||
fieldClass="px-6"
|
fieldClass="px-6 text-right"
|
||||||
type="text"
|
type="text"
|
||||||
name="amount"
|
name="amount"
|
||||||
placeholder="0"
|
placeholder="0"
|
||||||
|
|||||||
@@ -128,20 +128,21 @@ function ConfirmAddFund({
|
|||||||
logo: "https://www.wrenchboard.com/assets/images/wrench-500-500-icon.png",
|
logo: "https://www.wrenchboard.com/assets/images/wrench-500-500-icon.png",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
//debugger;
|
//debugger;
|
||||||
const fwConfig = {
|
const fwConfig = {
|
||||||
...config,
|
...config,
|
||||||
text: "Proceed",
|
text: "Proceed",
|
||||||
callback: (response) => {
|
callback: (response) => {
|
||||||
onSuccessPayment();
|
onSuccessPayment();
|
||||||
closePaymentModal();
|
setTimeout(() => {
|
||||||
|
closePaymentModal();
|
||||||
|
}, 2000);
|
||||||
},
|
},
|
||||||
onClose: () => {},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const onSuccessPayment = () => {
|
const onSuccessPayment = () => {
|
||||||
setRequestStatus({ message: "", loading: true, status: false });
|
setRequestStatus({ message: "", loading: true, status: false });
|
||||||
const reqData = { amount: Number(__confirmData?.amount), currency: "NGN" };
|
const reqData = { tx_ref: __confirmData?.credit_reference };
|
||||||
console.log("**** onSuccessPayment **** THIS WAS REACHED");
|
console.log("**** onSuccessPayment **** THIS WAS REACHED");
|
||||||
apiURL
|
apiURL
|
||||||
.resultTopUp(reqData)
|
.resultTopUp(reqData)
|
||||||
@@ -159,8 +160,15 @@ function ConfirmAddFund({
|
|||||||
loading: false,
|
loading: false,
|
||||||
status: true,
|
status: true,
|
||||||
});
|
});
|
||||||
toast.success("Account Topup was successful");
|
|
||||||
onClose()
|
setConfirmCredit((prev) => ({
|
||||||
|
...prev,
|
||||||
|
show: {
|
||||||
|
awaitConfirm: { loader: false, state: false },
|
||||||
|
acceptConfirm: { loader: false, state: true },
|
||||||
|
},
|
||||||
|
data: res,
|
||||||
|
}));
|
||||||
dispatch(tableReload({ type: "WALLETTABLE" }));
|
dispatch(tableReload({ type: "WALLETTABLE" }));
|
||||||
navigate("/my-wallet", { replace: true });
|
navigate("/my-wallet", { replace: true });
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
@@ -267,7 +275,7 @@ function ConfirmAddFund({
|
|||||||
}));
|
}));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setConfirmCredit((prev) => ({
|
setConfirmCredit((prev) => ({
|
||||||
...prev,
|
...prev,
|
||||||
@@ -300,9 +308,7 @@ function ConfirmAddFund({
|
|||||||
},
|
},
|
||||||
data: {},
|
data: {},
|
||||||
}));
|
}));
|
||||||
}
|
};
|
||||||
|
|
||||||
console.log(__confirmData)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="content-wrapper w-full h-[32rem]">
|
<div className="content-wrapper w-full h-[32rem]">
|
||||||
|
|||||||
Reference in New Issue
Block a user