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 committed Jan 16, 2025
1 parent 6d251a7 commit d485031
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 d485031

Please sign in to comment.