From 70ada36c00daa3505c7375888ce3be472f0ccb53 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Sat, 2 Nov 2024 06:31:47 +0100 Subject: [PATCH] wallet header dropdown fixed --- src/components/MyWallet/WalletAction.jsx | 19 ++++++++++++++++--- .../MyWallet/WalletExtraActionBtn.jsx | 18 ++++++++++++++++++ src/components/MyWallet/WalletHeader.jsx | 18 +++++++++++++++++- 3 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 src/components/MyWallet/WalletExtraActionBtn.jsx diff --git a/src/components/MyWallet/WalletAction.jsx b/src/components/MyWallet/WalletAction.jsx index 2a53c75..4e4a90d 100644 --- a/src/components/MyWallet/WalletAction.jsx +++ b/src/components/MyWallet/WalletAction.jsx @@ -3,6 +3,7 @@ import usersService from "../../services/UsersService"; import ConfirmNairaWithdraw from "./Popup/ConfirmNairaWithdraw"; import NairaWithdraw from "./Popup/NairaWithdraw"; import VirtualAddCardPopout from "./walletvirtual/VirtualAddCardPopout"; +import WalletExtraActionBtn from "./WalletExtraActionBtn"; function WalletAction({ walletItem, payment, openPopUp }) { @@ -38,15 +39,27 @@ function WalletAction({ walletItem, payment, openPopUp }) {
+ {/* // TO BE USED lATER */}
*/} + + ) +} diff --git a/src/components/MyWallet/WalletHeader.jsx b/src/components/MyWallet/WalletHeader.jsx index 8093c94..abdc00f 100644 --- a/src/components/MyWallet/WalletHeader.jsx +++ b/src/components/MyWallet/WalletHeader.jsx @@ -58,12 +58,27 @@ export default function WalletHeader(props) { props.myWalletList.map((value, index) => { let image = value.code ? `${value.code.toLocaleLowerCase()}.svg` : 'default.png' + return(
  • + {value?.brand && value?.card_last4 ? // FOR VIRTUAL CARD NUMBER ELSE WALLET BALANCE DISPLAY +
    +
    +
    + currency icon +
    +
    +

    + {value.brand} **** **** ***** {value?.card_last4} +

    +
    +
    +
    + :
    @@ -81,6 +96,7 @@ export default function WalletHeader(props) {

    + }
  • ) } -- 2.34.1