diff --git a/.storybook/main.ts b/.storybook/main.ts index dbb00f232a9..ff9c71ad390 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -72,13 +72,10 @@ const config: StorybookConfig = { } ], addons, - docs: { - autodocs: true - }, typescript: { reactDocgen: 'react-docgen-typescript' }, - staticDirs: [isDevMode && 'images-dev', 'images'].filter(Boolean) + staticDirs: [isDevMode && 'images-dev', !isDevMode && 'images'].filter(Boolean) }; export default config; diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index 5f043684b25..d10915e24b6 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -156,7 +156,8 @@ const preview: Preview = { } }, chromatic: { pauseAnimationAtEnd: true } - } + }, + tags: ['autodocs'] }; export default preview; diff --git a/packages/main/src/components/ObjectPage/ObjectPage.stories.tsx b/packages/main/src/components/ObjectPage/ObjectPage.stories.tsx index 664e7d66d45..8b9090f8d46 100644 --- a/packages/main/src/components/ObjectPage/ObjectPage.stories.tsx +++ b/packages/main/src/components/ObjectPage/ObjectPage.stories.tsx @@ -126,7 +126,8 @@ type Story = StoryObj; export const Default: Story = { render(args) { return ( - + // `onBeforeNavigate` has to be called like this, otherwise it's invoked two times for some reason. +
Evangelize the UI framework across the company}> @@ -305,7 +306,7 @@ export const SectionWithCustomHeader: Story = { name: 'section with custom header', render(args) { return ( - + +
It is recommended to only use fullscreen sections in TabBar mode, otherwise your layout will most probably @@ -378,6 +379,7 @@ export const LegacyToolbarSupport: Story = { return (