use default exports

This commit is contained in:
Tom Heaton
2024-06-06 00:38:13 +01:00
parent 96c7e41c9d
commit 77da5694bb
12 changed files with 21 additions and 43 deletions

View File

@@ -5,7 +5,7 @@ export default function ScrollToTop() {
const { pathname } = useLocation();
useEffect(() => {
window.scrollTo(0, 0);
window.scrollTo(0, 0, {});
}, [pathname]);
return null;