From b41fcd98852b01bdaf1459fa0491b53f4fdf8b91 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 20 Feb 2024 09:47:15 +0700
Subject: Update promotion program line

---
 src-migrate/modules/product-promo/components/Section.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src-migrate/modules/product-promo/components/Section.tsx')

diff --git a/src-migrate/modules/product-promo/components/Section.tsx b/src-migrate/modules/product-promo/components/Section.tsx
index 5000e737..07a5df7b 100644
--- a/src-migrate/modules/product-promo/components/Section.tsx
+++ b/src-migrate/modules/product-promo/components/Section.tsx
@@ -11,10 +11,9 @@ import ProductPromoModal from "./Modal"
 
 type Props = {
   productId: number;
-  height: number;
 }
 
-const ProductPromoSection = ({ productId, height = 435 }: Props) => {
+const ProductPromoSection = ({ productId }: Props) => {
   const promotionsQuery = useQuery({
     queryKey: [`promotions.highlight`, productId],
     queryFn: async () => await fetch(`/api/product-variant/${productId}/promotion/highlight`).then((res) => res.json()) as { data: IPromotion[] }
@@ -26,7 +25,7 @@ const ProductPromoSection = ({ productId, height = 435 }: Props) => {
 
   return (
     <div className={clsxm('w-full overflow-y-hidden transition-all opacity-0 duration-500 h-0', {
-      [`h-[${height}px] opacity-100`]: promotions?.data && promotions?.data.length > 0,
+      'h-[450px] opacity-100': promotions?.data && promotions?.data.length > 0,
     })}>
       <ProductPromoModal />
 
-- 
cgit v1.2.3

