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);