File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 11import type { Preview } from '@storybook/react-vite' ;
22import { useDarkMode } from '@vueless/storybook-dark-mode' ;
33import { useTheme } from 'next-themes' ;
4- import { useEffect } from 'react' ;
4+ import { StrictMode , useEffect } from 'react' ;
55import { ReactNode } from 'react' ;
66import { useTranslation } from 'react-i18next' ;
77import { StoryContext } from 'storybook/internal/csf' ;
@@ -86,12 +86,14 @@ const preview: Preview = {
8686 const isDarkMode = useDarkMode ( ) ;
8787 return (
8888 < Providers >
89- < DocumentationWrapper isDarkMode = { isDarkMode } context = { context } >
90- { /* Calling as a function to avoid errors. Learn more at:
91- * https://github.com/storybookjs/storybook/issues/15223#issuecomment-1092837912
92- */ }
93- { story ( context ) }
94- </ DocumentationWrapper >
89+ < StrictMode >
90+ < DocumentationWrapper isDarkMode = { isDarkMode } context = { context } >
91+ { /* Calling as a function to avoid errors. Learn more at:
92+ * https://github.com/storybookjs/storybook/issues/15223#issuecomment-1092837912
93+ */ }
94+ { story ( context ) }
95+ </ DocumentationWrapper >
96+ </ StrictMode >
9597 </ Providers >
9698 ) ;
9799 } ,
You can’t perform that action at this time.
0 commit comments