This commit is contained in:
ABasral committed 2025-09-12 13:37:27 +05:30
1 parent b06bb213b7
commit 52ded64b40
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -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() {
</motion.li>
);
});
}, [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() {
))}
</div>
),
[currentCategory]
[currentCategory, categories, categoryImages]
);
return (