put the with tabs story back the way it was

This commit is contained in:
Jono Kolnik 2022-04-08 14:45:45 -04:00
parent 24c5dc718a
commit 2317c2ad6b
2 changed files with 5 additions and 19 deletions

View File

@ -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>

View File

@ -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