mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 23:01:16 +08:00
Update name as per suggestion
This commit is contained in:
parent
9c2a1c67a1
commit
3934b7c60d
@ -16,8 +16,8 @@ const bindWithContext = (
|
||||
getStoryContext: () => StoryContext
|
||||
): PartialStoryFn =>
|
||||
// (NOTE: You cannot override the parameters key, it is fixed)
|
||||
({ parameters, ...innerContext }: StoryContextUpdate = {}) =>
|
||||
storyFn({ ...getStoryContext(), ...innerContext });
|
||||
({ parameters, ...contextUpdate }: StoryContextUpdate = {}) =>
|
||||
storyFn({ ...getStoryContext(), ...contextUpdate });
|
||||
|
||||
export const decorateStory = (
|
||||
storyFn: LegacyStoryFn,
|
||||
|
Loading…
x
Reference in New Issue
Block a user