mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Add paramKey for addon-storysource
Now you can hide the Story panel by `addParameters({ story: { disabled: true } });`. I suppose that without this fix there is no way to selectively show or hide the Story panel.
This commit is contained in:
parent
72e25c7ae5
commit
a2d43f0225
@ -10,6 +10,7 @@ export function register() {
|
||||
addons.addPanel(PANEL_ID, {
|
||||
title: 'Story',
|
||||
render: ({ active, key }) => <StoryPanel key={key} api={api} active={active} />,
|
||||
paramKey: 'story',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user