Fix argtypes stories

This commit is contained in:
Tom Coleman 2021-09-08 14:38:52 +10:00
parent 0bb2347cae
commit e6698c529a

View File

@ -10,8 +10,8 @@ import { Component } from '../../blocks';
const argsTableProps = (component: Component) => { const argsTableProps = (component: Component) => {
const argTypes = extractArgTypes(component); const argTypes = extractArgTypes(component);
const parameters = { __isArgsStory: true, argTypes }; const parameters = { __isArgsStory: true };
const rows = inferControls(({ parameters } as unknown) as StoryContext); const rows = inferControls(({ argTypes, parameters } as unknown) as StoryContext<any>);
return { rows }; return { rows };
}; };