Fixing eslint issues
This commit is contained in:
1 parent
2131cb5abb
commit
a0662c4883
2 files changed
+11
-15
No files matched your search
@@ -22,14 +22,20 @@ export const NavGroup = ({ item, sidebarRef }) => {
|
||||
}, [sidebarRef]);
|
||||
return (
|
||||
<div sx={styles.wrapper} data-testid="nav-group">
|
||||
<div sx={styles.title} onClick={toggleSubheadings}>
|
||||
<div
|
||||
sx={styles.title}
|
||||
onClick={toggleSubheadings}
|
||||
role="button"
|
||||
onKeyDown={toggleSubheadings}
|
||||
tabIndex="0"
|
||||
>
|
||||
{item.name}
|
||||
<ChevronDown sx={styles.chevron({ active: subheadingsVisible })} />
|
||||
</div>
|
||||
<div sx={styles.sublinkWrapper} data-testid="nav-group-links">
|
||||
{menu &&
|
||||
subheadingsVisible &&
|
||||
menu.map((menu) => {
|
||||
menu.map(menu => {
|
||||
if (currentDoc.route === menu.route) {
|
||||
return (
|
||||
<NavLink key={menu.id} item={menu} ref={currentDocRef}>
|
||||
|
||||
Reference in new issue
Block a user