summaryrefslogtreecommitdiff
path: root/src-migrate/modules/promo
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-08-01 02:08:25 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-08-01 02:08:25 +0000
commita1906c7576455a1a44283fe60cd7e1a1b4c628d1 (patch)
treedb2a28504d1a1d1e458f27cba7bdc9335a3bd5ac /src-migrate/modules/promo
parentf0296b4ef91158ef9c12d4a5b4f17c574352916f (diff)
parent7dbca25dede6cf213831f45321f5c7a28b4a6122 (diff)
Merged in Feature/iman-cart-popup (pull request #194)
<iman> add parameter product
Diffstat (limited to 'src-migrate/modules/promo')
-rw-r--r--src-migrate/modules/promo/components/PromoList.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-migrate/modules/promo/components/PromoList.tsx b/src-migrate/modules/promo/components/PromoList.tsx
index 42725034..4d0db3c2 100644
--- a/src-migrate/modules/promo/components/PromoList.tsx
+++ b/src-migrate/modules/promo/components/PromoList.tsx
@@ -114,7 +114,7 @@ const PromoList: React.FC<PromoListProps> = ({ selectedPromo }) => {
{promoData?.map((promotion: IPromotion) => (
<SwiperSlide key={promotion.id}>
<div className="min-w-36 max-w-[400px] mb-[20px] sm:w-full md:w-full lg:w-full xl:w-full">
- <ProductPromoCard promotion={promotion} />
+ <ProductPromoCard product={promoItems} promotion={promotion} />
</div>
</SwiperSlide>
))}
@@ -122,7 +122,7 @@ const PromoList: React.FC<PromoListProps> = ({ selectedPromo }) => {
)}
{isMobile && (promoData?.map((promotion: IPromotion) => (
<div key={promotion.id} className="min-w-[400px] max-w-[400px]">
- <ProductPromoCard promotion={promotion} />
+ <ProductPromoCard product={promoItems} promotion={promotion} />
</div>
)))}