File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import EscapeOutside from "react-escape-outside";
4
4
import NavbarLink from "../navbarLink/navbarLink" ;
5
5
import styles from "../navbar/navbar.module.scss" ;
6
6
import NavbarMenu from "../navbarMenu/navbarMenu" ;
7
- import data from "../../data/components/navbarItems.json" ;
8
7
9
8
const NavbarItem = ( {
10
9
itemLabel,
@@ -37,17 +36,7 @@ const NavbarItem = ({
37
36
< NavbarLink
38
37
label = { itemMenu ? itemLabel + " ▾" : itemLabel }
39
38
link = { itemLink }
40
- styleLink = {
41
- asPath !== data . navbarItems [ 3 ] . link &&
42
- ( itemLink === asPath ||
43
- itemMenu ?. find (
44
- item =>
45
- item . link === asPath ||
46
- item . subMenuSection ?. find ( subItem => subItem . link === asPath )
47
- ) )
48
- ? styles . selectedNavbarItem
49
- : undefined
50
- }
39
+ menuItems = { itemMenu }
51
40
/>
52
41
{ isItemMenuExpanded && itemMenu && (
53
42
< NavbarMenu
You can’t perform that action at this time.
0 commit comments