Skip to content

Commit

Permalink
Fix MDX on Storybook (#4092)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding authored Sep 13, 2024
1 parent 68fd674 commit 1abb777
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,20 @@ export const parameters: Parameters = {
}: ComponentProps<typeof DocsContainer>) => {
const ChosenProvider =
/* @ts-ignore Waiting for https://github.com/storybookjs/storybook/issues/12982 */
context.store.globals.globals?.themeNext === "enable"
context.store.userGlobals.globals?.themeNext === "enable"
? SaltProviderNext
: SaltProvider;
return (
<DocsContainer context={context} {...rest}>
<ChosenProvider
/* @ts-ignore Waiting for https://github.com/storybookjs/storybook/issues/12982 */
mode={context.store.globals.globals?.mode}
mode={context.store.userGlobals.globals?.mode}
enableStyleInjection={
/* @ts-ignore Waiting for https://github.com/storybookjs/storybook/issues/12982 */
context.store.globals.globals?.styleInjection === "enable"
context.store.userGlobals.globals?.styleInjection === "enable"
}
/* @ts-ignore Waiting for https://github.com/storybookjs/storybook/issues/12982 */
accent={context.store.globals.globals?.accent}
accent={context.store.userGlobals.globals?.accent}
>
{children}
</ChosenProvider>
Expand Down

0 comments on commit 1abb777

Please sign in to comment.