From f61feb4a4f2e0d2d7b9e75feb5d83119e727a074 Mon Sep 17 00:00:00 2001 From: mahdi Date: Mon, 4 Jul 2022 12:22:01 +0430 Subject: [PATCH] =?UTF-8?q?=D8=A7=D8=B7=D9=84=D8=A7=D8=AD=20=D8=A8=D8=A7?= =?UTF-8?q?=DA=AF=20|30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Contact/layouts/Ticket.js | 4 ++++ src/views/Dashboard/layouts/Main/MyBooks/index.js | 9 +++++++-- src/views/Video/components/Season.js | 3 ++- src/views/Video/index.js | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/Contact/layouts/Ticket.js b/src/views/Contact/layouts/Ticket.js index 772dc23..185a096 100644 --- a/src/views/Contact/layouts/Ticket.js +++ b/src/views/Contact/layouts/Ticket.js @@ -77,6 +77,10 @@ export const Ticket = ({ } }, [status]); + useEffect(() => { + window.scrollTo(0, 0); + }, []); + return (
{!status && ( diff --git a/src/views/Dashboard/layouts/Main/MyBooks/index.js b/src/views/Dashboard/layouts/Main/MyBooks/index.js index 8a6a531..b5da5b7 100644 --- a/src/views/Dashboard/layouts/Main/MyBooks/index.js +++ b/src/views/Dashboard/layouts/Main/MyBooks/index.js @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useEffect } from "react"; import { connect } from "react-redux"; import { Link } from "react-router-dom"; @@ -37,8 +37,13 @@ export const MyBooks = ({ books, grades, isMobile }) => { ); }; + + useEffect(() => { + window.scrollTo(0, 0); + }, []); + return ( -
+
{/* {books.slice(0, 1).map((product, index) => ( diff --git a/src/views/Video/components/Season.js b/src/views/Video/components/Season.js index 461cd00..3ec6442 100644 --- a/src/views/Video/components/Season.js +++ b/src/views/Video/components/Season.js @@ -103,6 +103,7 @@ const Season = ({
); }; + return isMobile ? (
{" "} + />
) : ( -
+