Skip to content
Prev Previous commit
Next Next commit
Fix storybook
  • Loading branch information
BrunoQuaresma committed Jul 12, 2023
commit 4fff5e2a9460cdbf1c8628bac7fc922499eb1f4d
8 changes: 8 additions & 0 deletions site/.storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { dark } from "../src/theme"
import "../src/theme/globalFonts"
import "../src/i18n"
import { LocalPreferencesProvider } from "../src/contexts/LocalPreferencesContext"
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"

export const decorators = [
(Story) => (
Expand All @@ -31,6 +32,13 @@ export const decorators = [
</LocalPreferencesProvider>
)
},
(Story) => {
return (
<QueryClientProvider client={new QueryClient()}>
<Story />
</QueryClientProvider>
)
},
]

export const parameters = {
Expand Down