Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: storybook error (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
HideBa committed Sep 8, 2021
1 parent f36c868 commit f27f9ba
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .storybook/preview.tsx
Expand Up @@ -10,7 +10,6 @@ import {
import { Provider as ThemeProvider } from "../src/theme";
import { Provider as IntlProvider } from "../src/locale";
import { Provider as DndProvider } from "../src/util/use-dnd";
import { Provider as LocalStateProvider } from "../src/state";

// apollo client that does nothing
const mockClient = new ApolloClient({
Expand All @@ -32,11 +31,9 @@ export const decorators = [
(storyFn: () => ReactElement) => (
<ApolloProvider client={mockClient}>
<ThemeProvider>
<LocalStateProvider>
<IntlProvider>
<DndProvider>{storyFn()}</DndProvider>
</IntlProvider>
</LocalStateProvider>
<IntlProvider>
<DndProvider>{storyFn()}</DndProvider>
</IntlProvider>
</ThemeProvider>
</ApolloProvider>
),
Expand Down

0 comments on commit f27f9ba

Please sign in to comment.