Skip to content

Commit

Permalink
Fix useEffect is not defined in i18n template (#11788)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobbe Lundberg <[email protected]>
  • Loading branch information
Philzen and Tobbe authored Dec 22, 2024
1 parent 58b78d4 commit 2e492ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const globalTypes: GlobalTypes = {
*/
const withI18n = (StoryFn: StoryFn, context: StoryContext) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
React.useEffect(() => {
i18n.changeLanguage(context.globals.locale)
}, [context.globals.locale])

Expand Down

0 comments on commit 2e492ce

Please sign in to comment.