Skip to content

Commit

Permalink
Rename Integrations to Addons
Browse files Browse the repository at this point in the history
- Add Addons nav item
  • Loading branch information
kylegach committed Mar 25, 2024
1 parent ec1d5ad commit b3d7757
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const links = {
showcase: { url: 'https://storybook.js.org/showcase' },
projects: { url: 'https://storybook.js.org/showcase/projects' },
componentGlossary: { url: 'https://storybook.js.org/showcase/glossary' },
integrations: { url: '/integrations', linkWrapper: FakeGatsbyLink },
addons: { url: '/addons', linkWrapper: FakeGatsbyLink },
getInvolved: { url: '/community', linkWrapper: FakeGatsbyLink },
blog: { url: 'https://storybook.js.org/blog' },
hiring: { url: 'https://www.chromatic.com/company/jobs' },
Expand Down
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.addons },
{ label: 'Get involved', link: links.getInvolved },
{ label: 'Blog', link: links.blog },
],
Expand Down
6 changes: 3 additions & 3 deletions src/components/Nav/Nav.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const navLinks = {
showcase: { url: 'https://storybook.js.org/showcase' },
projects: { url: 'https://storybook.js.org/showcase/projects' },
componentGlossary: { url: 'https://storybook.js.org/showcase/glossary' },
integrations: { url: '/integrations', linkWrapper: FakeGatsbyLink },
addons: { url: '/addons', linkWrapper: FakeGatsbyLink },
getInvolved: { url: '/community', linkWrapper: FakeGatsbyLink },
blog: { url: 'https://storybook.js.org/blog' },
hiring: { url: 'https://www.chromatic.com/company/jobs' },
Expand All @@ -50,7 +50,7 @@ const Template = (args) => (
export const Default = Template.bind({});

export const Inverse = Template.bind({});
Inverse.args = { inverse: true, activeSection: 'integrations' };
Inverse.args = { inverse: true, activeSection: 'addons' };
Inverse.parameters = {
backgrounds: { default: 'dark' },
};
Expand Down Expand Up @@ -91,7 +91,7 @@ export const FullStack = () => (
<SubNavRight>
<SubNavCTA href="/back">
<Icon icon="add" />
Add your integration
Add your addon
</SubNavCTA>
</SubNavRight>
</SubNav>
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' | 'addons' | '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 === 'addons'}
monochrome={monochrome}
variant={inverse ? 'inverse' : 'default'}
href={navLinks.addons.url}
LinkWrapper={navLinks.addons.linkWrapper}
>
Addons
</NavItem>
<NavItem
active={activeSection === 'showcase'}
monochrome={monochrome}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Nav/menus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export const mobileGroups = (links: Links) => [
label: 'Community',
items: [
{
label: 'Integrations',
link: links.integrations,
label: 'Addons',
link: links.addons,
icon: <ColoredIcon icon="grid" color="seafoam" />,
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/components/SubNav/SubNav.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ export const BreadcrumbCTA = () => (
<SubNav>
<SubNavBreadcrumb tertiary href="/back">
<Icon icon="arrowleft" />
Back to integrations
Back to addons
</SubNavBreadcrumb>
<SubNavRight>
<SubNavCTA href="/back">
<Icon icon="add" />
Add your integration
Add your addon
</SubNavCTA>
</SubNavRight>
</SubNav>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ValuePropCopy.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ WithLinks.args = {
<Link containsIcon withArrow href="/why-storybook">
Why build UIs in isolation?
</Link>
<Link containsIcon withArrow href="/integrations">
<Link containsIcon withArrow href="/addons">
How does this fit in my tech stack?
</Link>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/components/links-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface Links {
showcase: LinkItem;
projects: LinkItem;
componentGlossary: LinkItem;
integrations: LinkItem;
addons: LinkItem;
getInvolved: LinkItem;
blog: LinkItem;
hiring: LinkItem;
Expand All @@ -37,7 +37,7 @@ export const defaultLinks = {
showcase: { url: 'https://storybook.js.org/showcase' },
projects: { url: 'https://storybook.js.org/showcase/projects' },
componentGlossary: { url: 'https://storybook.js.org/showcase/glossary' },
integrations: { url: 'https://storybook.js.org/integrations' },
addons: { url: 'https://storybook.js.org/addons' },
getInvolved: { url: 'https://storybook.js.org/community' },
blog: { url: 'https://storybook.js.org/blog' },
hiring: { url: 'https://www.chromatic.com/company/jobs' },
Expand Down

0 comments on commit b3d7757

Please sign in to comment.