From 3919a2bc4b8cdcb89f2f161d2cf5231f1569c3dd Mon Sep 17 00:00:00 2001 From: Ebube Date: Wed, 12 Jul 2023 15:12:50 +0100 Subject: [PATCH] Layout Readjusting --- src/components/MyWallet/AddFundDollars.jsx | 98 ++++++++++++------- src/components/MyWallet/AddFundPop.jsx | 26 +---- src/components/MyWallet/ConfirmAddFund.jsx | 8 +- src/components/MyWallet/Popup/CreditPopup.jsx | 2 +- 4 files changed, 71 insertions(+), 63 deletions(-) diff --git a/src/components/MyWallet/AddFundDollars.jsx b/src/components/MyWallet/AddFundDollars.jsx index ef91858..a23a318 100644 --- a/src/components/MyWallet/AddFundDollars.jsx +++ b/src/components/MyWallet/AddFundDollars.jsx @@ -145,45 +145,73 @@ function AddFundDollars(props) { <>
{/* switch button */} -
- - +
+
+

+ {props.currency == "US Dollars" && "Payment Method"} +

+
+ + +
+
+
+

+ {props.currency == "US Dollars" + ? "Amount (USD)" + : "Amount (Naira)"} +

+
+ +

+ {props.inputError && props.inputError} +

+
+
+
{/* END OF switch button */} {/* previous tab */} {tab == "previous" ? ( -
+
{payListCards.loading ? ( ) : payListCards?.data?.length ? ( @@ -253,7 +281,7 @@ function AddFundDollars(props) { )}
) : ( -
+
+
{/*

Add Credit with Account Deposit

*/} {/*
*/} -
-
- - {inputError && ( -

{inputError}

- )} -
-
-

- {currency == "US Dollars" && "Payment Method"} -

-
- {/* SHOWS THIS IF USER CURRENCY IS DOLLARS */} {currency == "US Dollars" && (
@@ -91,6 +68,7 @@ function AddFundPop({ _payment, input, setInput, onClose, setConfirmCredit }) { setInput={setInput} currency={currency} onClose={onClose} + handleChange={handleChange} setConfirmCredit={setConfirmCredit} />
diff --git a/src/components/MyWallet/ConfirmAddFund.jsx b/src/components/MyWallet/ConfirmAddFund.jsx index 2a805b1..b9d82cd 100644 --- a/src/components/MyWallet/ConfirmAddFund.jsx +++ b/src/components/MyWallet/ConfirmAddFund.jsx @@ -96,7 +96,7 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) { // } // }, []); - const ThePaymentText = ({value}) => ( + const ThePaymentText = ({ value }) => (

@@ -109,7 +109,9 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) {

); - console.log("data on confirm", confirmCredit?.data?.card.card_uid); + let __something = JSON.parse(confirmCredit?.data.card); + + console.log("data on confirm", __something["card_uid"], __something.card_uid); return (
@@ -122,7 +124,7 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) {
{confirmCredit?.show ? ( -
+