family icon added

This commit was merged in pull request #332.
This commit is contained in:
victorAnumudu
2023-07-17 15:31:39 +01:00
parent 2ba3b01646
commit 15fc5f4f14
3 changed files with 17 additions and 23 deletions
@@ -23,7 +23,7 @@ function ConfirmNairaWithdraw({ payment, wallet, action, situation, state }) {
const handleSubmit = () => {
setRequestStatus({ message: "", loading: true, status: false });
let reqData = {
amount: Number(state.amount),
amount: Number(state.amount * 100),
Fee: Number(state.fee),
recipientid: Number(state.recipientID),
};
@@ -58,14 +58,6 @@ function ConfirmNairaWithdraw({ payment, wallet, action, situation, state }) {
});
};
useEffect(() => {
// what happens if not state redirect user
if (!state) {
navigate("/my-wallet/withdraw-naira", { replace: true });
} else {
setPageLoading(false);
}
}, []);
return (
<ModalCom action={action} situation={situation}>
<div className="content-wrapper w-[90%] md:w-[600px]">
@@ -114,7 +106,7 @@ function ConfirmNairaWithdraw({ payment, wallet, action, situation, state }) {
label="Processing Fee:"
type="text"
name="processingFee"
value={state?.fee || ""}
value={(state?.fee * 0.01).toFixed(2) || ""}
disable={true}
/>
</div>
@@ -126,7 +118,7 @@ function ConfirmNairaWithdraw({ payment, wallet, action, situation, state }) {
label="Total"
type="text"
name="total"
value={state?.total || ""}
value={(state?.total * 0.01).toFixed(2) || ""}
disable={true}
/>
</div>