diff --git a/.changeset/six-donkeys-nail.md b/.changeset/six-donkeys-nail.md new file mode 100644 index 00000000000..21ae6df5e5c --- /dev/null +++ b/.changeset/six-donkeys-nail.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris': patch +--- + +Updated Storybook stories to be wrapped with an empty FrameContext.Provider diff --git a/polaris-react/.storybook/preview.js b/polaris-react/.storybook/preview.js index 4a5db4d336d..cb3a5c196d9 100644 --- a/polaris-react/.storybook/preview.js +++ b/polaris-react/.storybook/preview.js @@ -1,6 +1,6 @@ import React, {useRef, useEffect} from 'react'; -import {AppProvider} from '../src'; +import {AppProvider, FrameContext} from '../src'; import enTranslations from '../locales/en.json'; import {GridOverlay} from './GridOverlay'; import {RenderPerformanceProfiler} from './RenderPerformanceProfiler'; @@ -37,7 +37,9 @@ function AppProviderDecorator(Story, context) { }} i18n={enTranslations} > - + + + ); }