ScrollTo top In Pages Fixed

temp
Pedram Keshavarzi 3 years ago
parent c7cf23f745
commit 996f50617c
  1. 5
      src/views/Product/Desktop/index.js
  2. 4
      src/views/Products/layouts/Main.js

@ -1,4 +1,4 @@
import React from "react";
import React, { useEffect } from "react";
import ProductOverAll from "./ProductOverAll";
import ProductTab from "../../../components/ProductTab";
import ProductSuggestions from "../../../components/ProductSuggestion";
@ -8,6 +8,9 @@ import Comments from "../../../components/Comments";
import QandA from "../../../components/QandA";
const DesktopProductLayout = () =>{
useEffect(() => {
window.scrollTo(0, 0)
}, [])
return (
<div className="w-11/12 flex flex-col overflow-y-hidden mt-3 mb-64 items-center">
<ProductOverAll />

@ -21,7 +21,9 @@ export const Main = ({ isMobile,
headerOptions,
videos,
filter }) => {
useEffect(() => {
window.scrollTo(0, 0)
}, [])
const filteringNavItems = [
{

Loading…
Cancel
Save