Add disable home page option

This commit is contained in:
Elias Schneider
2022-05-02 22:42:27 +02:00
parent 2cdd802422
commit c02e9c4efb
10 changed files with 46 additions and 43 deletions

View File

@@ -67,11 +67,11 @@ const Header = () => {
const items = links.map((link) => {
if (link) {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
if (window.location.pathname == link.link) {
setActive(link.link);
}
});
// useEffect(() => {
// if (window.location.pathname == link.link) {
// setActive(link.link);
// }
// });
return (
<NextLink
key={link.label}