formatting

This commit is contained in:
Tom Heaton
2024-06-05 23:58:58 +01:00
parent def3e5234b
commit 03c92541ad
27 changed files with 24481 additions and 23650 deletions

View File

@@ -1,11 +1,11 @@
import {useEffect} from 'react'
import { useLocation } from 'react-router-dom'
import { useEffect } from "react";
import { useLocation } from "react-router-dom";
export default function ScrollToTop() {
const {pathname} = useLocation()
const { pathname } = useLocation();
useEffect(() => {
window.scrollTo(0,0)
}, [pathname])
window.scrollTo(0, 0);
}, [pathname]);
return null;
}