From 8d873b6e64d519f23fbacecc93bbeee2b0f65eff Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 7 Jul 2023 17:37:10 +0800 Subject: [PATCH] Build: Fix TOC stories for cra/default-js --- .../docs/template/stories/toc/basic.stories.ts | 14 +++----------- .../stories/toc/custom-selector.stories.ts | 5 +++-- .../template/stories/toc/custom-title.stories.ts | 5 +++-- .../stories/toc/ignore-selector.stories.ts | 5 +++-- 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/code/addons/docs/template/stories/toc/basic.stories.ts b/code/addons/docs/template/stories/toc/basic.stories.ts index c66fe554aa34..63938a400e8f 100644 --- a/code/addons/docs/template/stories/toc/basic.stories.ts +++ b/code/addons/docs/template/stories/toc/basic.stories.ts @@ -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' } }; diff --git a/code/addons/docs/template/stories/toc/custom-selector.stories.ts b/code/addons/docs/template/stories/toc/custom-selector.stories.ts index 48f1ee785156..e031366aa829 100644 --- a/code/addons/docs/template/stories/toc/custom-selector.stories.ts +++ b/code/addons/docs/template/stories/toc/custom-selector.stories.ts @@ -1,5 +1,4 @@ import { global as globalThis } from '@storybook/global'; -import { One, Two, Three } from './basic.stories'; export default { component: globalThis.Components.Button, @@ -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' } }; diff --git a/code/addons/docs/template/stories/toc/custom-title.stories.ts b/code/addons/docs/template/stories/toc/custom-title.stories.ts index 2fde6ebcabf3..69303e905cd0 100644 --- a/code/addons/docs/template/stories/toc/custom-title.stories.ts +++ b/code/addons/docs/template/stories/toc/custom-title.stories.ts @@ -1,5 +1,4 @@ import { global as globalThis } from '@storybook/global'; -import { One, Two, Three } from './basic.stories'; export default { component: globalThis.Components.Button, @@ -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' } }; diff --git a/code/addons/docs/template/stories/toc/ignore-selector.stories.ts b/code/addons/docs/template/stories/toc/ignore-selector.stories.ts index d355ac9ae966..61ae6d12f2a7 100644 --- a/code/addons/docs/template/stories/toc/ignore-selector.stories.ts +++ b/code/addons/docs/template/stories/toc/ignore-selector.stories.ts @@ -1,5 +1,4 @@ import { global as globalThis } from '@storybook/global'; -import { One, Two, Three } from './basic.stories'; export default { component: globalThis.Components.Button, @@ -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' } };