Skip to content

Commit b3d7757

Browse files
committed
Rename Integrations to Addons
- Add Addons nav item
1 parent ec1d5ad commit b3d7757

8 files changed

+23
-14
lines changed

src/components/Footer/Footer.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const links = {
3535
showcase: { url: 'https://storybook.js.org/showcase' },
3636
projects: { url: 'https://storybook.js.org/showcase/projects' },
3737
componentGlossary: { url: 'https://storybook.js.org/showcase/glossary' },
38-
integrations: { url: '/integrations', linkWrapper: FakeGatsbyLink },
38+
addons: { url: '/addons', linkWrapper: FakeGatsbyLink },
3939
getInvolved: { url: '/community', linkWrapper: FakeGatsbyLink },
4040
blog: { url: 'https://storybook.js.org/blog' },
4141
hiring: { url: 'https://www.chromatic.com/company/jobs' },

src/components/Footer/Footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const footerGroups = (links: Links) => ({
2828
{ label: 'Status', link: links.status },
2929
],
3030
community: [
31-
{ label: 'Integrations', link: links.integrations },
31+
{ label: 'Addons', link: links.addons },
3232
{ label: 'Get involved', link: links.getInvolved },
3333
{ label: 'Blog', link: links.blog },
3434
],

src/components/Nav/Nav.stories.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const navLinks = {
3535
showcase: { url: 'https://storybook.js.org/showcase' },
3636
projects: { url: 'https://storybook.js.org/showcase/projects' },
3737
componentGlossary: { url: 'https://storybook.js.org/showcase/glossary' },
38-
integrations: { url: '/integrations', linkWrapper: FakeGatsbyLink },
38+
addons: { url: '/addons', linkWrapper: FakeGatsbyLink },
3939
getInvolved: { url: '/community', linkWrapper: FakeGatsbyLink },
4040
blog: { url: 'https://storybook.js.org/blog' },
4141
hiring: { url: 'https://www.chromatic.com/company/jobs' },
@@ -50,7 +50,7 @@ const Template = (args) => (
5050
export const Default = Template.bind({});
5151

5252
export const Inverse = Template.bind({});
53-
Inverse.args = { inverse: true, activeSection: 'integrations' };
53+
Inverse.args = { inverse: true, activeSection: 'addons' };
5454
Inverse.parameters = {
5555
backgrounds: { default: 'dark' },
5656
};
@@ -91,7 +91,7 @@ export const FullStack = () => (
9191
<SubNavRight>
9292
<SubNavCTA href="/back">
9393
<Icon icon="add" />
94-
Add your integration
94+
Add your addon
9595
</SubNavCTA>
9696
</SubNavRight>
9797
</SubNav>

src/components/Nav/Nav.tsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ interface NavProps {
115115
monochrome?: boolean;
116116
version: string;
117117
apiKey: string;
118-
activeSection?: 'home' | 'docs' | 'showcase' | 'blog';
118+
activeSection?: 'home' | 'docs' | 'addons' | 'showcase' | 'blog';
119119
githubStarCount: number;
120120
}
121121

@@ -151,7 +151,7 @@ const GithubButtonWrapper = styled.div`
151151
152152
display: none;
153153
154-
@media (min-width: 1024px) {
154+
@media (min-width: 1224px) {
155155
display: block;
156156
}
157157
`;
@@ -191,6 +191,15 @@ export const Nav: FunctionComponent<NavProps> = ({
191191
>
192192
Docs
193193
</NavItem>
194+
<NavItem
195+
active={activeSection === 'addons'}
196+
monochrome={monochrome}
197+
variant={inverse ? 'inverse' : 'default'}
198+
href={navLinks.addons.url}
199+
LinkWrapper={navLinks.addons.linkWrapper}
200+
>
201+
Addons
202+
</NavItem>
194203
<NavItem
195204
active={activeSection === 'showcase'}
196205
monochrome={monochrome}

src/components/Nav/menus.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ export const mobileGroups = (links: Links) => [
117117
label: 'Community',
118118
items: [
119119
{
120-
label: 'Integrations',
121-
link: links.integrations,
120+
label: 'Addons',
121+
link: links.addons,
122122
icon: <ColoredIcon icon="grid" color="seafoam" />,
123123
},
124124
{

src/components/SubNav/SubNav.stories.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ export const BreadcrumbCTA = () => (
156156
<SubNav>
157157
<SubNavBreadcrumb tertiary href="/back">
158158
<Icon icon="arrowleft" />
159-
Back to integrations
159+
Back to addons
160160
</SubNavBreadcrumb>
161161
<SubNavRight>
162162
<SubNavCTA href="/back">
163163
<Icon icon="add" />
164-
Add your integration
164+
Add your addon
165165
</SubNavCTA>
166166
</SubNavRight>
167167
</SubNav>

src/components/ValuePropCopy.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ WithLinks.args = {
2424
<Link containsIcon withArrow href="/why-storybook">
2525
Why build UIs in isolation?
2626
</Link>
27-
<Link containsIcon withArrow href="/integrations">
27+
<Link containsIcon withArrow href="/addons">
2828
How does this fit in my tech stack?
2929
</Link>
3030
</>

src/components/links-context.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface Links {
1717
showcase: LinkItem;
1818
projects: LinkItem;
1919
componentGlossary: LinkItem;
20-
integrations: LinkItem;
20+
addons: LinkItem;
2121
getInvolved: LinkItem;
2222
blog: LinkItem;
2323
hiring: LinkItem;
@@ -37,7 +37,7 @@ export const defaultLinks = {
3737
showcase: { url: 'https://storybook.js.org/showcase' },
3838
projects: { url: 'https://storybook.js.org/showcase/projects' },
3939
componentGlossary: { url: 'https://storybook.js.org/showcase/glossary' },
40-
integrations: { url: 'https://storybook.js.org/integrations' },
40+
addons: { url: 'https://storybook.js.org/addons' },
4141
getInvolved: { url: 'https://storybook.js.org/community' },
4242
blog: { url: 'https://storybook.js.org/blog' },
4343
hiring: { url: 'https://www.chromatic.com/company/jobs' },

0 commit comments

Comments
 (0)