From 477282518b140925c390cb6bec2fc26434533740 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 3 Jul 2022 11:27:19 +0430 Subject: [PATCH] =?UTF-8?q?=DA=A9=D8=A7=D8=B1=20=DA=A9=D8=B1=D8=AF=D9=85?= =?UTF-8?q?=20=DA=A9=D9=87=20=D8=A7=DA=AF=D8=B1=20=DA=A9=D8=A7=D8=B1=D8=A8?= =?UTF-8?q?=D8=B1=20=D9=88=D8=B3=D8=B7=20=DB=8C=DA=A9=20=D8=B5=D9=81=D8=AD?= =?UTF-8?q?=D9=87=20=D8=A7=DB=8C=20=D8=A8=D9=88=D8=AF=20=D9=88=20=D8=B1?= =?UTF-8?q?=D9=88=DB=8C=20=DB=8C=DA=A9=DB=8C=20=D8=A7=D8=B2=20=D8=A7=DB=8C?= =?UTF-8?q?=D8=AA=D9=85=20=D9=87=D8=A7=DB=8C=20=D9=85=D9=88=D8=AC=D9=88?= =?UTF-8?q?=D8=AF=20=D8=AF=D8=B1=20=D9=87=D8=AF=D8=B1=20=D8=B2=D8=AF=20?= =?UTF-8?q?=D9=88=20=D9=88=D8=A7=D8=B1=D8=AF=20=D8=A7=D9=88=D9=86=20=D8=B5?= =?UTF-8?q?=D9=81=D8=AD=D9=87=20=D8=AC=D8=AF=DB=8C=D8=AF=D9=87=20=D8=B2?= =?UTF-8?q?=D8=AF=20=D8=B5=D9=81=D8=AD=D9=87=20=D8=AC=D8=AF=DB=8C=D8=AF=20?= =?UTF-8?q?=D8=A7=D8=B2=20=D8=A8=D8=A7=D9=84=D8=A7=20=D8=A8=D8=A7=D8=B2=20?= =?UTF-8?q?=D8=B4=D9=88=D8=AF=20|=2035?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/About/index.js | 6 +++++- src/views/Blog/index.js | 2 +- src/views/Blogs/index.js | 7 ++++++- src/views/Contact/index.js | 4 ++++ src/views/Home/index.js | 19 +++++++++++++------ 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/views/About/index.js b/src/views/About/index.js index 049e77a..2bcd617 100644 --- a/src/views/About/index.js +++ b/src/views/About/index.js @@ -21,9 +21,13 @@ function About({ setHeaderOptions({ shown: true }); }, []); + useEffect(() => { + window.scrollTo(0, 0); + }, []); + return (
-
+

{first.title}

+

{isMobile && (
{ } getList(); }, []); + + useEffect(() => { + window.scrollTo(0, 0); + }, []); + return ( -
+
diff --git a/src/views/Contact/index.js b/src/views/Contact/index.js index b60977b..6ee9882 100644 --- a/src/views/Contact/index.js +++ b/src/views/Contact/index.js @@ -21,6 +21,10 @@ function Contact({ headerOptions, setHeaderOptions, info, isMobile, isDark }) { setHeaderOptions(headerOptions); }, []); + useEffect(() => { + window.scrollTo(0, 0); + }, []); + return (
{ setHeaderOptions(headerOptions); }, []); + + useEffect(() => { + window.scrollTo(0, 0); + }, []); + return ( <> + {isMobile ? ( + + ) : ( +
+ +
+ )} - { - isMobile ? :
- } - {/* */} ); @@ -27,7 +35,6 @@ const mapStateToProps = (state) => ({ const mapDispatchToProps = { setHeaderOptions: publicApi.setHeaderOptions, - }; export default connect(mapStateToProps, mapDispatchToProps)(Home);