Fixed the prop drill

This commit was merged in pull request #286.
This commit is contained in:
2023-07-10 19:22:03 +01:00
parent 2e25b33110
commit 6daa4d6d43
5 changed files with 36 additions and 24 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import RecentTransactionWidget from "./RecentTransactionWidget";
import LoadingSpinner from "../Spinners/LoadingSpinner";
import WalletItemCard from "./WalletItemCard";
export default function WalletBox({ wallet, coupon }) {
export default function WalletBox({ wallet, coupon, payment }) {
return (
<>
<div className="my-wallet-wrapper w-full mb-10">
@@ -18,7 +18,7 @@ export default function WalletBox({ wallet, coupon }) {
) : wallet.data.length ? (
wallet.data.map((item, index) => (
<div className="lg:w-1/2 h-full mb-10 lg:mb-0">
<WalletItemCard walletItem={item} />
<WalletItemCard walletItem={item} paymentHistory={payment} />
</div>
))
) : null}