Ran prettier on the whole frontend codebase again

This commit is contained in:
Isoporhode
2021-11-14 23:50:59 +01:00
parent b5c977ae4e
commit 7e38eb96eb
62 changed files with 42481 additions and 31383 deletions
+11 -11
View File
@@ -1,24 +1,24 @@
import { useEffect } from 'react';
import { withRouter } from 'react-router-dom';
import { useEffect } from "react";
import { withRouter } from "react-router-dom";
function ScrollToTop({getUserNotifications, setCurpath, history }) {
function ScrollToTop({ getUserNotifications, setCurpath, history }) {
useEffect(() => {
const unlisten = history.listen(() => {
window.scroll({
top: 0,
left: 0,
behavior: "smooth",
});
top: 0,
left: 0,
behavior: "smooth",
});
setCurpath(window.location.pathname)
getUserNotifications()
setCurpath(window.location.pathname);
getUserNotifications();
});
return () => {
unlisten();
}
};
}, []);
return (null);
return null;
}
// https://stackoverflow.com/questions/36904185/react-router-scroll-to-top-on-every-transition