diff --git a/src/components/Sidebar.js b/src/components/Sidebar.js
index 79d2a5cad..7ff69314d 100644
--- a/src/components/Sidebar.js
+++ b/src/components/Sidebar.js
@@ -17,23 +17,6 @@ const renderNav = (pages, depthLevel = 0) => {
);
const isCurrentPage = crumbs[crumbs.length - 1] === page.displayName;
- const display = page.url ? (
- {page.displayName}
- ) : (
-
setIsDisplay(!isDisplay)}
- onKeyPress={() => setIsDisplay(!isDisplay)}
- tabIndex={0}
- >
- {page.displayName}
-
- );
- let subNav;
-
- if (page.children) {
- subNav = renderNav(page.children, depthLevel + 1);
- }
return (
{
})}
key={index}
>
- {display}
-
+ {page.url ? (
+
+ {page.displayName}
+
+ ) : (
+ setIsDisplay(!isDisplay)}
+ onKeyPress={() => setIsDisplay(!isDisplay)}
+ tabIndex={0}
+ >
+ {page.displayName}
+
+ )}
+ {page.children && (
+
+ {renderNav(page.children, depthLevel + 1)}
+
+ )}
);
});
diff --git a/src/components/Sidebar.module.scss b/src/components/Sidebar.module.scss
index 479bbf9bb..52308e71f 100644
--- a/src/components/Sidebar.module.scss
+++ b/src/components/Sidebar.module.scss
@@ -71,15 +71,13 @@
}
}
+.navItem {
+ margin-bottom: 1rem;
+}
+
.navDepth0 {
color: var(--color-black);
font-weight: bold;
- div {
- margin: 1rem 0;
- }
- li {
- margin: 1rem 0;
- }
}
.navDepth1 {