Completed conversion to popup

This commit was merged in pull request #288.
This commit is contained in:
2023-07-10 23:21:59 +01:00
parent d274a5c56a
commit cc22e1a458
10 changed files with 819 additions and 586 deletions
+5 -2
View File
@@ -5,7 +5,7 @@ import { Link } from "react-router-dom";
import { useSelector } from "react-redux";
import CreditPopup from "./Popup/CreditPopup";
export default function WalletItemCard({ walletItem, paymentHistory }) {
export default function WalletItemCard({ walletItem, payment }) {
// const [eth] = useState(90);
// const [btc] = useState(85);
// const [ltc] = useState(20);
@@ -26,6 +26,9 @@ export default function WalletItemCard({ walletItem, paymentHistory }) {
const closePopUp = () => {
setCreditPopup({ show: false, data: {} });
};
console.log("walletItem >>", walletItem, payment);
return (
<>
<div
@@ -92,7 +95,7 @@ export default function WalletItemCard({ walletItem, paymentHistory }) {
className="px-2 py-1 flex items-center gap-2 user-balance cursor-pointer h-[40px] rounded-full bg-white lg:text-xl text-lg font-bold text-black group relative transition duration-300 stroke-black fill-white"
onClick={() => {
openPopUp({
paymentHistory: paymentHistory,
payment: payment,
currency: walletItem?.description,
});
}}