Completed conversion to popup
This commit was merged in pull request #288.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user