From 52ded64b408e9ea2c734450c870df89ded2babf7 Mon Sep 17 00:00:00 2001 From: ABasral Date: Fri, 12 Sep 2025 13:37:27 +0530 Subject: [PATCH] fixes --- src/app/about/page.tsx | 4 ++-- src/components/ProductCategory.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 6851f75..409c715 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -191,7 +191,7 @@ export default function AboutPage() { transition={{ duration: 0.6, delay: 0.2 }} viewport={{ once: true }} > - are the proud founders of Mozimo, a bean-to-bar chocolate shop that celebrates the rich and distinctive flavors of single origin cocoa beans. Their journey with Mozimo has been a passionate pursuit of creating exceptional chocolate that tantalizes the taste buds and tells the unique story of each cocoa bean's origin. + are the proud founders of Mozimo, a bean-to-bar chocolate shop that celebrates the rich and distinctive flavors of single origin cocoa beans. Their journey with Mozimo has been a passionate pursuit of creating exceptional chocolate that tantalizes the taste buds and tells the unique story of each cocoa bean's origin. @@ -255,7 +255,7 @@ export default function AboutPage() { transition={{ duration: 0.6, delay: 0.2 }} viewport={{ once: true }} > - With over 15 years of hospitality experience, these avid travelers scoured the globe for the finest cocoa beans and techniques. Deep in remote cocoa farms, they cultivated relationships with farmers committed to sustainability. Carefully selecting beans, they honor each harvest's stories. In their cozy workshop, they roast, crack, and refine beans with modern techniques, capturing their essence in every Mozimo chocolate bar. + With over 15 years of hospitality experience, these avid travelers scoured the globe for the finest cocoa beans and techniques. Deep in remote cocoa farms, they cultivated relationships with farmers committed to sustainability. Carefully selecting beans, they honor each harvest's stories. In their cozy workshop, they roast, crack, and refine beans with modern techniques, capturing their essence in every Mozimo chocolate bar. diff --git a/src/components/ProductCategory.tsx b/src/components/ProductCategory.tsx index d9286b1..062e7e8 100644 --- a/src/components/ProductCategory.tsx +++ b/src/components/ProductCategory.tsx @@ -59,7 +59,7 @@ export default function ProductCategory() { }; preloadImages(); - }, []); + }, [categoryImages]); // Ultra-fast animation variants (no delays) const fadeInLeft = { @@ -138,7 +138,7 @@ export default function ProductCategory() { ); }); - }, [currentCategory, handleCategoryChange]); + }, [currentCategory, handleCategoryChange, categories, categoryImages, categoryLinks]); // Ultra-optimized image switcher with instant transitions const categoryImageComponent = useMemo( @@ -177,7 +177,7 @@ export default function ProductCategory() { ))} ), - [currentCategory] + [currentCategory, categories, categoryImages] ); return (