From 3775c520ff156bfd7735dd2e1cf9fab732e08127 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Mon, 1 Apr 2024 18:23:34 +0100 Subject: [PATCH] added modal style to wallet modal --- .../MyWallet/Popup/AddFundDollars.jsx | 22 +- src/components/MyWallet/Popup/AddFundPop.jsx | 86 +- .../MyWallet/Popup/CompleteConfirmCredit.jsx | 18 +- .../MyWallet/Popup/ConfirmAddFund.jsx | 182 ++-- .../MyWallet/Popup/ConfirmNairaWithdraw.jsx | 99 +- src/components/MyWallet/Popup/CreditPopup.jsx | 8 +- .../MyWallet/Popup/NairaWithdraw.jsx | 907 +++++++++--------- src/components/MyWallet/WalletAction.jsx | 4 +- src/index.css | 3 + 9 files changed, 667 insertions(+), 662 deletions(-) diff --git a/src/components/MyWallet/Popup/AddFundDollars.jsx b/src/components/MyWallet/Popup/AddFundDollars.jsx index c5414fd..3fbc2cd 100644 --- a/src/components/MyWallet/Popup/AddFundDollars.jsx +++ b/src/components/MyWallet/Popup/AddFundDollars.jsx @@ -259,7 +259,7 @@ function AddFundDollars(props) {
{/* switch button */}
-
+

{countryWallet == "US" && "Payment Method"}

@@ -313,7 +313,7 @@ function AddFundDollars(props) { {/* previous selectedOption */} {selectedOption === "previous" && ( -
+
{payListCards.loading ? ( ) : payListCards?.data?.length ? ( @@ -367,7 +367,7 @@ function AddFundDollars(props) { )} {selectedOption === "new" && ( -
+
{payListCards.loading ? (
@@ -381,8 +381,8 @@ function AddFundDollars(props) { > {(props) => { return ( - -
+ +
{/* Inputs */} @@ -588,16 +588,16 @@ function AddFundDollars(props) {
-
+
{selectedOption == "previous" && ( -
+
- -
- )}
+ + {countryWallet === "US" && ( +
+ +
+ )} + + {countryWallet == "NG" &&
} + + {countryWallet == "NG" && ( +
+ + +
+ )}
); } diff --git a/src/components/MyWallet/Popup/CompleteConfirmCredit.jsx b/src/components/MyWallet/Popup/CompleteConfirmCredit.jsx index 9302b17..64f92c8 100644 --- a/src/components/MyWallet/Popup/CompleteConfirmCredit.jsx +++ b/src/components/MyWallet/Popup/CompleteConfirmCredit.jsx @@ -8,7 +8,7 @@ function CompleteConfirmCredit({ onClose, confirmCredit }) { data?.result === "Charge success" || data?.status === "successful"; return ( -
+
@@ -97,17 +97,17 @@ function CompleteConfirmCredit({ onClose, confirmCredit }) {
-
- -
+
+ +
); } diff --git a/src/components/MyWallet/Popup/ConfirmAddFund.jsx b/src/components/MyWallet/Popup/ConfirmAddFund.jsx index 866f7fc..79f0e77 100644 --- a/src/components/MyWallet/Popup/ConfirmAddFund.jsx +++ b/src/components/MyWallet/Popup/ConfirmAddFund.jsx @@ -356,103 +356,105 @@ function ConfirmAddFund({ }; return ( -
-
-
-
-
- {confirmCredit?.show?.awaitConfirm?.state && ( -
- - - - {__confirmCountry === "US" && ( -
- - - + <> +
+
+
+
+
+ {confirmCredit?.show?.awaitConfirm?.state && ( +
+ + + + {__confirmCountry === "US" && ( +
+ + + + +
+ )} +
+

+ Reference No +

+ + {__confirmData?.credit_reference}
- )} -
-

- Reference No -

- - {__confirmData?.credit_reference} -
-
- )} -
-
- -
-
-
- - {__confirmCountry === "US" && ( - - )} - {__confirmCountry === "NG" && ( - - )} +
+
+ +
-
+ +
+ + {__confirmCountry === "US" && ( + + )} + {__confirmCountry === "NG" && ( + + )} +
+ ); } diff --git a/src/components/MyWallet/Popup/ConfirmNairaWithdraw.jsx b/src/components/MyWallet/Popup/ConfirmNairaWithdraw.jsx index df4baed..a6fec7f 100644 --- a/src/components/MyWallet/Popup/ConfirmNairaWithdraw.jsx +++ b/src/components/MyWallet/Popup/ConfirmNairaWithdraw.jsx @@ -107,8 +107,8 @@ function ConfirmNairaWithdraw({
-
-

+
+

{completeNairaWithdraw.load ? ( "Confirming..." ) : ( @@ -126,7 +126,7 @@ function ConfirmNairaWithdraw({


-
+
{completeNairaWithdraw.load ? (
@@ -376,53 +376,52 @@ function ConfirmNairaWithdraw({
)} - - {!completeNairaWithdraw.load && ( - <> - {" "} -
-

- {requestStatus.message && requestStatus.message} -

-
- {!completeNairaWithdraw.show && ( - - )} - - -
- - )}
+ + {!completeNairaWithdraw.load && ( + <> +

+ {requestStatus.message && requestStatus.message} +

+
+ {!completeNairaWithdraw.show && ( + + )} + + +
+ + )} +

diff --git a/src/components/MyWallet/Popup/CreditPopup.jsx b/src/components/MyWallet/Popup/CreditPopup.jsx index 47b6549..c7a596f 100644 --- a/src/components/MyWallet/Popup/CreditPopup.jsx +++ b/src/components/MyWallet/Popup/CreditPopup.jsx @@ -36,15 +36,15 @@ const CreditPopup = ({ details, onClose, situation, walletItem }) => { className="assign-task-popup" >
-
-

+
+

{confirmCredit?.show?.acceptConfirm?.loader ? "Confirming Credit..." : getTitle()}

-
+
{confirmCredit?.show?.acceptConfirm?.loader ? (
diff --git a/src/components/MyWallet/Popup/NairaWithdraw.jsx b/src/components/MyWallet/Popup/NairaWithdraw.jsx index b222240..1a88f61 100644 --- a/src/components/MyWallet/Popup/NairaWithdraw.jsx +++ b/src/components/MyWallet/Popup/NairaWithdraw.jsx @@ -292,15 +292,15 @@ function NairaWithdraw({
-
-

+
+

{`Withdraw from ${wallet.description} Wallet : ${wallet.symbol}${( wallet.amount * 0.01 ).toFixed(2)}`}

-
{(props) => { return (
- {/* Amount Form */} -
-
- { - getSendMoneyFee(e); - }} - error={errorMsgs.amount && errorMsgs.amount} - /> -
- -
- -
- -
- -
- -
- -