Skip to content

Commit

Permalink
clean up PR
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensacks committed Jun 6, 2023
1 parent 696ad25 commit 6ba6c1d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"concurrently": "^6.2.0",
"dedent": "^0.7.0",
"i18next": "^22.5.0",
"i18next-browser-languagedetector": "^7.0.1",
"i18next-browser-languagedetector": "^7.0.2",
"i18next-http-backend": "^2.2.1",
"prettier": "^2.8.8",
"prompts": "^2.4.2",
Expand Down
12 changes: 5 additions & 7 deletions src/withI18Next.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {Fragment, ReactNode} from 'react';
import {useEffect, useGlobals, useRef, useState} from '@storybook/client-api';
import React, {ReactNode} from 'react';
import {useEffect, useGlobals} from '@storybook/client-api';
import {
PartialStoryFn as StoryFunction,
Renderer,
Expand All @@ -24,10 +24,8 @@ export const withI18Next = (
}, [locale]);

return (
<>
<I18nextProvider i18n={i18n}>
{story(context) as ReactNode | null}
</I18nextProvider>
</>
<I18nextProvider i18n={i18n}>
{story(context) as ReactNode | null}
</I18nextProvider>
);
};
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7726,12 +7726,12 @@ __metadata:
languageName: node
linkType: hard

"i18next-browser-languagedetector@npm:^7.0.1":
version: 7.0.1
resolution: "i18next-browser-languagedetector@npm:7.0.1"
"i18next-browser-languagedetector@npm:^7.0.2":
version: 7.0.2
resolution: "i18next-browser-languagedetector@npm:7.0.2"
dependencies:
"@babel/runtime": ^7.19.4
checksum: 03129614be8761988df59b630359ded4f7c989eec4553781b5968139fd898de1eb09128c4c69c1365b547649ad829ff9abe1f60161658f8789668bcc623adcf0
checksum: ea6c5254308965ff9fe9870c16b546b67d065cc00bd3af961f1414ba73fbe323a7d1b76fe7524b1581307f7849fa6d04c36336693818a23d3690ebefc60d9071
languageName: node
linkType: hard

Expand Down Expand Up @@ -11229,7 +11229,7 @@ __metadata:
concurrently: ^6.2.0
dedent: ^0.7.0
i18next: ^22.5.0
i18next-browser-languagedetector: ^7.0.1
i18next-browser-languagedetector: ^7.0.2
i18next-http-backend: ^2.2.1
prettier: ^2.8.8
prompts: ^2.4.2
Expand Down

0 comments on commit 6ba6c1d

Please sign in to comment.