summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-promo/components
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-06-13 09:34:24 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-06-13 09:34:24 +0700
commit0a87455727114468c216fbcd74266ea928eaec37 (patch)
tree7e285c407073f609667625d98432c5afff7fe104 /src-migrate/modules/product-promo/components
parentce968fcd38e5c4bb69400862fe4da484934088d5 (diff)
<iman> update promotion-program
Diffstat (limited to 'src-migrate/modules/product-promo/components')
-rw-r--r--src-migrate/modules/product-promo/components/Card.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-migrate/modules/product-promo/components/Card.tsx b/src-migrate/modules/product-promo/components/Card.tsx
index 0be27af2..e927508f 100644
--- a/src-migrate/modules/product-promo/components/Card.tsx
+++ b/src-migrate/modules/product-promo/components/Card.tsx
@@ -18,10 +18,10 @@ import ProductPromoCardCountdown from "./CardCountdown"
type Props = {
promotion: IPromotion
- slug?: string
+
}
-const ProductPromoCard = ({ promotion, slug }: Props) => {
+const ProductPromoCard = ({ promotion}: Props) => {
const [products, setProducts] = useState<IProductVariantPromo[]>([])
const [freeProducts, setFreeProducts] = useState<IProductVariantPromo[]>([])
const [error, setError] = useState<string | null>(null)
@@ -74,7 +74,7 @@ const ProductPromoCard = ({ promotion, slug }: Props) => {
const allProducts = [...products, ...freeProducts]
- const shouldRender = !slug || promotion.type.value === slug
+
return (
// shouldRender && (