summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-promo
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-02-19 16:07:25 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-02-19 16:07:25 +0700
commit95f49f1de12ae612957b60ed53cf5993b9b7ef1e (patch)
treeb23f03815392d916a6abfb611883b1b040421413 /src-migrate/modules/product-promo
parent410cc16690f97e59b6a93b4196a2c13caf498b4d (diff)
Add promotion program smooth animation
Diffstat (limited to 'src-migrate/modules/product-promo')
-rw-r--r--src-migrate/modules/product-promo/components/Section.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-migrate/modules/product-promo/components/Section.tsx b/src-migrate/modules/product-promo/components/Section.tsx
index b6753be7..694a3705 100644
--- a/src-migrate/modules/product-promo/components/Section.tsx
+++ b/src-migrate/modules/product-promo/components/Section.tsx
@@ -25,7 +25,9 @@ const ProductPromoSection = ({ productId }: Props) => {
const { openModal } = useModalStore()
return (
- <div className='w-full'>
+ <div className={clsxm('w-full overflow-y-hidden transition-all duration-500 h-0', {
+ 'h-[425px]': promotions?.data && promotions?.data.length > 0,
+ })}>
<ProductPromoModal />
{promotions?.data && promotions?.data.length > 0 && (