mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
put the with tabs story back the way it was
This commit is contained in:
parent
24c5dc718a
commit
2317c2ad6b
@ -144,22 +144,7 @@ export const WithCanvasTab = () => (
|
||||
</Consumer>
|
||||
);
|
||||
|
||||
export const WithTabs = () => (
|
||||
<Consumer>
|
||||
{({ api }: Combo) => {
|
||||
return (
|
||||
<Preview
|
||||
{...previewProps}
|
||||
api={{
|
||||
...api,
|
||||
getElements: () => ({}),
|
||||
getQueryParam: () => '',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}}
|
||||
</Consumer>
|
||||
);
|
||||
export const WithTabs = () => <Preview {...previewProps} />;
|
||||
|
||||
export const WithToolbarExclusions = () => (
|
||||
<Consumer>
|
||||
|
@ -132,9 +132,10 @@ const useTools = (
|
||||
[defaultToolsExtra, toolsExtraFromConfig]
|
||||
);
|
||||
|
||||
const toolbarExclusions = getQueryParam(TOOLBAR_EXCLUSION_PARAM)
|
||||
? getQueryParam(TOOLBAR_EXCLUSION_PARAM).split(',')
|
||||
: [];
|
||||
const toolbarExclusions: string[] =
|
||||
getQueryParam && getQueryParam(TOOLBAR_EXCLUSION_PARAM)
|
||||
? getQueryParam(TOOLBAR_EXCLUSION_PARAM).split(',')
|
||||
: [];
|
||||
|
||||
return useMemo(() => {
|
||||
return story && story.parameters
|
||||
|
Loading…
x
Reference in New Issue
Block a user