diff --git a/src/components/MyWallet/WalletBox.jsx b/src/components/MyWallet/WalletBox.jsx index 7a2e5da..a77e37d 100644 --- a/src/components/MyWallet/WalletBox.jsx +++ b/src/components/MyWallet/WalletBox.jsx @@ -10,7 +10,7 @@ export default function WalletBox({ wallet, coupon, payment }) { <>
-
+
{wallet.loading ? (
diff --git a/src/components/MyWallet/WalletItemCard.jsx b/src/components/MyWallet/WalletItemCard.jsx index dc44724..aafaa6a 100644 --- a/src/components/MyWallet/WalletItemCard.jsx +++ b/src/components/MyWallet/WalletItemCard.jsx @@ -4,6 +4,7 @@ import { PriceFormatter } from "../Helpers/PriceFormatter"; import { Link } from "react-router-dom"; import { useSelector } from "react-redux"; import CreditPopup from "./Popup/CreditPopup"; +import localImgLoad from "../../lib/localImgLoad"; export default function WalletItemCard({ walletItem, payment }) { // const [eth] = useState(90); @@ -29,70 +30,67 @@ export default function WalletItemCard({ walletItem, payment }) { console.log("walletItem >>", walletItem, payment); + let image = walletItem.code ? `${walletItem.code.toLocaleLowerCase()}.svg` : 'default.png' // HOLDS THE VALUE NAME PROPERTY FOR IMAGE ICON + return ( <>
-
+
-
-

- . -

-

- {walletItem.code} -

-
+ curreny-icon
-
-
-

- Current Balance -

-

- {PriceFormatter( - walletItem.amount * 0.01, - walletItem.code, - undefined, - "text-[2rem]" - )} -

-

- HOLDINGS :{" "} - +

+
+

+ Current Balance +

+

{PriceFormatter( - walletItem.escrow * 0.01, + walletItem.amount * 0.01, walletItem.code, undefined, "text-[2rem]" )} - - {/*(11.5%)*/} -

+

+

+ HOLDINGS :{" "} + + {PriceFormatter( + walletItem.escrow * 0.01, + walletItem.code, + undefined, + "text-[2rem]" + )} + +

+
+ + {/* for white underline */} +
+ {!accountType && ( -
+
- Transfer + Spend