diff --git a/src/pages/catalog/index.tsx b/src/pages/catalog/index.tsx index b09c52eb..66628c59 100644 --- a/src/pages/catalog/index.tsx +++ b/src/pages/catalog/index.tsx @@ -28,8 +28,6 @@ const Catalog: React.FC = () => { .finally(() => { setIsLoading(false); }); - - window.scrollTo(0, 0); }, []); return ( diff --git a/src/pages/category/index.tsx b/src/pages/category/index.tsx index d9bc78f2..277c9708 100644 --- a/src/pages/category/index.tsx +++ b/src/pages/category/index.tsx @@ -51,10 +51,6 @@ const Category: React.FC = () => { }); }, [category, navigate]); - useEffect(() => { - window.scrollTo(0, 0); - }, []); - const changeCheckboxState = (e: ChangeEvent) => { if (e.target.name === 'vegetarian') { setCheckboxState((prev) => ({ ...prev, vegetarian: !prev.vegetarian })); diff --git a/src/pages/product/index.tsx b/src/pages/product/index.tsx index c9373fb9..752b2eeb 100644 --- a/src/pages/product/index.tsx +++ b/src/pages/product/index.tsx @@ -73,10 +73,6 @@ const Product: React.FC = () => { } }, [cartData, id]); - useEffect(() => { - window.scrollTo(0, 0); - }, []); - const handleAddCartClick = () => { if (isLoaded || !productItem) return; if (id !== undefined) {