File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,16 @@ import I18n from "../locale/I18n.js";
33import "./About.scss" ;
44import { useAppStore } from "../stores/AppStore.js" ;
55import { Background } from "../components/Background.jsx" ;
6+ import { useEffect } from "react" ;
67
78export const About = ( ) => {
89
910 const config = useAppStore ( ( state ) => state . config ) ;
1011
12+ useEffect ( ( ) => {
13+ window . scroll ( 0 , 0 ) ;
14+ } , [ ] ) ;
15+
1116 return (
1217 < div className = "about-container" >
1318 < div className = "about" >
Original file line number Diff line number Diff line change @@ -10,13 +10,18 @@ import {useAppStore} from "../stores/AppStore.js";
1010import { Button } from "@surfnet/sds" ;
1111import { Link } from "react-router" ;
1212import { Background } from "../components/Background.jsx" ;
13+ import { useEffect } from "react" ;
1314
1415export const Home = ( ) => {
1516
1617 const config = useAppStore ( ( state ) => state . config ) ;
1718
1819 const isMobile = "ontouchstart" in window || navigator . maxTouchPoints > 0 ;
1920
21+ useEffect ( ( ) => {
22+ window . scroll ( 0 , 0 ) ;
23+ } , [ ] ) ;
24+
2025 return (
2126 < div className = "home-container" >
2227 < div className = "home" >
Original file line number Diff line number Diff line change 11import I18n from "../locale/I18n.js" ;
22import "./ServiceDesk.scss"
33import FrontDesk from "../assets/frontdesk.svg" ;
4+ import { useEffect } from "react" ;
45
56export const ServiceDesk = ( ) => {
67
8+ useEffect ( ( ) => {
9+ window . scroll ( 0 , 0 ) ;
10+ } , [ ] ) ;
11+
712 return (
813 < div className = "servicedesk-container" >
914 < div className = "servicedesk" >
Original file line number Diff line number Diff line change @@ -5,11 +5,16 @@ import support from "../assets/support.svg";
55import mobileScreenshot from "../assets/mobile_screenshot.svg" ;
66import { Background } from "../components/Background.jsx" ;
77import { useAppStore } from "../stores/AppStore.js" ;
8+ import { useEffect } from "react" ;
89
910export const Support = ( ) => {
1011
1112 const config = useAppStore ( ( state ) => state . config ) ;
1213
14+ useEffect ( ( ) => {
15+ window . scroll ( 0 , 0 ) ;
16+ } , [ ] ) ;
17+
1318 return (
1419 < div className = "support-container" >
1520 < div className = "support" >
You can’t perform that action at this time.
0 commit comments