Skip to content

Commit

Permalink
fix: active links toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 20, 2021
1 parent dd485c4 commit 32793ef
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/patterns/Toolbar/ToolbarLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,7 @@ export const NavProducts = createNavItem({
NavProducts.pages.some(pagePath => location.pathname.startsWith(pagePath))
})

NavProducts.pages = [
'/meta',
'/sdk',
'/pdf',
'/screenshot',
'/sdk',
'/insights'
]
NavProducts.pages = ['/meta', '/sdk', '/pdf', '/screenshot', '/insights']

export const NavDevelopers = createNavItem({
children: 'Developers',
Expand All @@ -165,10 +158,10 @@ NavDevelopers.pages = ['/docs', '/recipes', '/community', '/changelog']
export const NavCompany = createNavItem({
children: 'Company',
actively: ({ location }) =>
NavDevelopers.pages.some(pagePath => location.pathname.startsWith(pagePath))
NavCompany.pages.some(pagePath => location.pathname.startsWith(pagePath))
})

NavCompany.pages = ['/blog', '/newsletter', '/oss']
NavCompany.pages = ['/blog', '/oss', '/newsletter']

export const NavGitHub = createNavItem({
children: 'GitHub',
Expand Down

1 comment on commit 32793ef

@vercel
Copy link

@vercel vercel bot commented on 32793ef Jun 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.