Skip to content

Commit

Permalink
Merge pull request #403 from newrelic/liz/move-component-overview
Browse files Browse the repository at this point in the history
Move component overview page into component library side nav item
  • Loading branch information
LizBaker authored Jul 9, 2020
2 parents e8a7bbf + 89200b5 commit 0dcd765
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/components/NavigationItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ const NavItem = ({ page, depthLevel, searchTerm, filteredPageNames }) => {
>
<span className={styles.navLinkText}>
{headerIcon}
{page.displayName === 'Component library' && (
<FeatherIcon
className={cx(
{ [styles.isExpanded]: isExpanded },
styles.nestedChevron
)}
name="chevron-right"
/>
)}
{display}
</span>
{isCurrentPage && (
Expand Down
5 changes: 1 addition & 4 deletions src/data/sidenav.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@
"displayName": "Nerdpack file structure",
"url": "/explore-docs/nerdpack-file-structure"
},
{
"displayName": "Intro to New Relic One API components",
"url": "/explore-docs/intro-to-sdk"
},
{
"displayName": "Intro to Nerdstorage",
"url": "/explore-docs/nerdstorage"
Expand All @@ -123,6 +119,7 @@
},
{
"displayName": "Component library",
"url": "/explore-docs/intro-to-sdk",
"children": [
{
"displayName": "AccountPicker",
Expand Down

0 comments on commit 0dcd765

Please sign in to comment.