Change template Stories to make them compatible with excludeDecorators docs parameter

This commit is contained in:
Valentin Palkovic 2023-02-13 11:40:42 +01:00
parent 206b0983d8
commit 9543df1cad
7 changed files with 14 additions and 21 deletions

View File

@ -2,10 +2,9 @@ import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/types';
export default {
component: null,
component: globalThis.Components.Pre,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
(storyFn: PartialStoryFn, context: StoryContext) => storyFn({ args: { object: context.args } }),
],
argTypes: {
boolean: { control: 'boolean' },

View File

@ -2,10 +2,9 @@ import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/types';
export default {
component: null,
component: globalThis.Components.Pre,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
(storyFn: PartialStoryFn, context: StoryContext) => storyFn({ args: { object: context.args } }),
],
};

View File

@ -2,10 +2,9 @@ import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/types';
export default {
component: null,
component: globalThis.Components.Pre,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
(storyFn: PartialStoryFn, context: StoryContext) => storyFn({ args: { object: context.args } }),
],
};

View File

@ -2,10 +2,9 @@ import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/types';
export default {
component: null,
component: globalThis.Components.Pre,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
(storyFn: PartialStoryFn, context: StoryContext) => storyFn({ args: { object: context.args } }),
],
args: {
helloWorld: 1,

View File

@ -2,10 +2,9 @@ import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/types';
export default {
component: null,
component: globalThis.Components.Pre,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
(storyFn: PartialStoryFn, context: StoryContext) => storyFn({ args: { object: context.args } }),
],
};

View File

@ -2,10 +2,9 @@ import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/types';
export default {
component: null,
component: globalThis.Components.Pre,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
(storyFn: PartialStoryFn, context: StoryContext) => storyFn({ args: { object: context.args } }),
],
};

View File

@ -2,10 +2,9 @@ import { global as globalThis } from '@storybook/global';
import type { PartialStoryFn, StoryContext } from '@storybook/types';
export default {
component: null,
component: globalThis.Components.Pre,
decorators: [
(storyFn: PartialStoryFn, context: StoryContext) =>
storyFn({ component: globalThis.Components.Pre, args: { object: context.args } }),
(storyFn: PartialStoryFn, context: StoryContext) => storyFn({ args: { object: context.args } }),
],
argTypes: {
x: { type: { required: true } },