Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fff5e2

Browse files
committed
Fix storybook
1 parent 434cf2b commit 4fff5e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

site/.storybook/preview.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { dark } from "../src/theme"
66
import "../src/theme/globalFonts"
77
import "../src/i18n"
88
import { LocalPreferencesProvider } from "../src/contexts/LocalPreferencesContext"
9+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
910

1011
export const decorators = [
1112
(Story) => (
@@ -31,6 +32,13 @@ export const decorators = [
3132
</LocalPreferencesProvider>
3233
)
3334
},
35+
(Story) => {
36+
return (
37+
<QueryClientProvider client={new QueryClient()}>
38+
<Story />
39+
</QueryClientProvider>
40+
)
41+
},
3442
]
3543

3644
export const parameters = {

0 commit comments

Comments
 (0)