diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-01 01:49:38 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-01 01:49:38 +0000 |
| commit | f0296b4ef91158ef9c12d4a5b4f17c574352916f (patch) | |
| tree | ab31341b2be2546e28963b6634747a6dc22e28c5 /src-migrate/modules/product-promo/components/Card.tsx | |
| parent | b0f4055042aa0efbbef1ebafbbb032dc4b67da58 (diff) | |
| parent | 0abd42f8b528b3166169fef7093d4d8b22f3fb79 (diff) | |
Merged in Feature/iman-cart-popup (pull request #193)
<iman> add pop up when hit keranjang button
Diffstat (limited to 'src-migrate/modules/product-promo/components/Card.tsx')
| -rw-r--r-- | src-migrate/modules/product-promo/components/Card.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src-migrate/modules/product-promo/components/Card.tsx b/src-migrate/modules/product-promo/components/Card.tsx index 728d23ca..b286aa5b 100644 --- a/src-migrate/modules/product-promo/components/Card.tsx +++ b/src-migrate/modules/product-promo/components/Card.tsx @@ -15,16 +15,17 @@ import clsxm from '~/libs/clsxm' import ProductPromoItem from './Item' import ProductPromoAddToCart from "./AddToCart" import ProductPromoCardCountdown from "./CardCountdown" +import { IProductDetail } from '~/types/product'; import MobileView from '../../../../src/core/components/views/MobileView'; import DesktopView from '../../../../src/core/components/views/DesktopView'; type Props = { promotion: IPromotion - + product: IProductDetail } -const ProductPromoCard = ({ promotion}: Props) => { +const ProductPromoCard = ({product, promotion}: Props) => { const [products, setProducts] = useState<IProductVariantPromo[]>([]) const [freeProducts, setFreeProducts] = useState<IProductVariantPromo[]>([]) const [error, setError] = useState<string | null>(null) @@ -132,7 +133,7 @@ const ProductPromoCard = ({ promotion}: Props) => { </div> <div> - <ProductPromoAddToCart promotion={promotion} /> + <ProductPromoAddToCart product={product} promotion={promotion} /> </div> </div> @@ -189,7 +190,7 @@ const ProductPromoCard = ({ promotion}: Props) => { </div> </div> <div> - <ProductPromoAddToCart promotion={promotion} /> + <ProductPromoAddToCart product={product} promotion={promotion} /> </div> </div> |
