Skip to content

Commit

Permalink
Merge pull request #80 from storybookjs/integrations-rename-to-addons
Browse files Browse the repository at this point in the history
Add Addons (Integrations) nav item
  • Loading branch information
kylegach authored Apr 1, 2024
2 parents ec1d5ad + 9ddb05f commit 3c5abf3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const footerGroups = (links: Links) => ({
{ label: 'Status', link: links.status },
],
community: [
{ label: 'Integrations', link: links.integrations },
{ label: 'Addons', link: links.integrations },
{ label: 'Get involved', link: links.getInvolved },
{ label: 'Blog', link: links.blog },
],
Expand Down
13 changes: 11 additions & 2 deletions src/components/Nav/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ interface NavProps {
monochrome?: boolean;
version: string;
apiKey: string;
activeSection?: 'home' | 'docs' | 'showcase' | 'blog';
activeSection?: 'home' | 'docs' | 'integrations' | 'showcase' | 'blog';
githubStarCount: number;
}

Expand Down Expand Up @@ -151,7 +151,7 @@ const GithubButtonWrapper = styled.div`
display: none;
@media (min-width: 1024px) {
@media (min-width: 1224px) {
display: block;
}
`;
Expand Down Expand Up @@ -191,6 +191,15 @@ export const Nav: FunctionComponent<NavProps> = ({
>
Docs
</NavItem>
<NavItem
active={activeSection === 'integrations'}
monochrome={monochrome}
variant={inverse ? 'inverse' : 'default'}
href={navLinks.integrations.url}
LinkWrapper={navLinks.integrations.linkWrapper}
>
Addons
</NavItem>
<NavItem
active={activeSection === 'showcase'}
monochrome={monochrome}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav/menus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const mobileGroups = (links: Links) => [
label: 'Community',
items: [
{
label: 'Integrations',
label: 'Addons',
link: links.integrations,
icon: <ColoredIcon icon="grid" color="seafoam" />,
},
Expand Down

0 comments on commit 3c5abf3

Please sign in to comment.