Fixed the prop drill
This commit was merged in pull request #286.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user