diff --git a/packages/storybook-addon-designs/src/register/index.tsx b/packages/storybook-addon-designs/src/register/index.tsx index 8009e5e..4235faa 100644 --- a/packages/storybook-addon-designs/src/register/index.tsx +++ b/packages/storybook-addon-designs/src/register/index.tsx @@ -53,12 +53,13 @@ export default function register(renderTarget: "panel" | "tab") { match: ({ viewMode }) => viewMode === "design", }); } else { - addons.addPanel(PanelName, { + addons.add(PanelName, { + type: types.PANEL, title, paramKey: ParameterName, - render({ active, key }) { + render({ active }) { return ( - +