Skip to content

Commit

Permalink
Merge pull request #11617 from storybookjs/remove-stories-annotation
Browse files Browse the repository at this point in the history
Hoist CSF `.story` annotations
  • Loading branch information
shilman authored Jul 20, 2020
2 parents 8230b89 + 244ae06 commit 670abd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/core/src/client/preview/loadCsf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const deprecatedStoryAnnotationWarning = deprecate(
CSF .story annotations deprecated; annotate story functions directly:
- StoryFn.story.name => StoryFn.storyName
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
See https://github.com/storybookjs/storybook/issues/10906 for details and codemod.
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
`
);

Expand Down
6 changes: 2 additions & 4 deletions lib/ui/src/components/preview/iframe.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ export const workingStory = () => (
scale={1.0}
/>
);
workingStory.story = {
parameters: {
chromatic: { delay: 300 },
},
workingStory.parameters = {
chromatic: { delay: 300 },
};

export const missingStory = () => (
Expand Down

0 comments on commit 670abd4

Please sign in to comment.