mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Fix argtypes stories
This commit is contained in:
parent
0bb2347cae
commit
e6698c529a
@ -10,8 +10,8 @@ import { Component } from '../../blocks';
|
||||
|
||||
const argsTableProps = (component: Component) => {
|
||||
const argTypes = extractArgTypes(component);
|
||||
const parameters = { __isArgsStory: true, argTypes };
|
||||
const rows = inferControls(({ parameters } as unknown) as StoryContext);
|
||||
const parameters = { __isArgsStory: true };
|
||||
const rows = inferControls(({ argTypes, parameters } as unknown) as StoryContext<any>);
|
||||
return { rows };
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user