mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-19 13:33:13 +02:00
Add disable home page option
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user