Skip to content

Commit

Permalink
Merge pull request #23349 from storybookjs/shilman/fix-toc-stories
Browse files Browse the repository at this point in the history
Build: Fix TOC stories for cra/default-js
  • Loading branch information
shilman authored Jul 7, 2023
2 parents add71c3 + 8d873b6 commit 1f782f3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
14 changes: 3 additions & 11 deletions code/addons/docs/template/stories/toc/basic.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ export default {
},
};

export const One = {
args: { label: 'One' },
};

export const Two = {
args: { label: 'Two' },
};

export const Three = {
args: { label: 'Two' },
};
export const One = { args: { label: 'One' } };
export const Two = { args: { label: 'Two' } };
export const Three = { args: { label: 'Three' } };
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { global as globalThis } from '@storybook/global';
import { One, Two, Three } from './basic.stories';

export default {
component: globalThis.Components.Button,
Expand All @@ -11,4 +10,6 @@ export default {
},
};

export { One, Two, Three };
export const One = { args: { label: 'One' } };
export const Two = { args: { label: 'Two' } };
export const Three = { args: { label: 'Three' } };
5 changes: 3 additions & 2 deletions code/addons/docs/template/stories/toc/custom-title.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { global as globalThis } from '@storybook/global';
import { One, Two, Three } from './basic.stories';

export default {
component: globalThis.Components.Button,
Expand All @@ -11,4 +10,6 @@ export default {
},
};

export { One, Two, Three };
export const One = { args: { label: 'One' } };
export const Two = { args: { label: 'Two' } };
export const Three = { args: { label: 'Three' } };
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { global as globalThis } from '@storybook/global';
import { One, Two, Three } from './basic.stories';

export default {
component: globalThis.Components.Button,
Expand All @@ -11,4 +10,6 @@ export default {
},
};

export { One, Two, Three };
export const One = { args: { label: 'One' } };
export const Two = { args: { label: 'Two' } };
export const Three = { args: { label: 'Three' } };

0 comments on commit 1f782f3

Please sign in to comment.