chore: [app-router-migration-4]: apps/categories page (#12619)

This commit is contained in:
DmytroHryshyn authored and GitHub committed 2023-12-12 11:43:15 -07:00
1 parent 7a67331d96
commit add6ffdfc4
12 files changed
+225 -27

No files matched your search

+1 -5
View File
@@ -97,13 +97,9 @@ const CustomI18nextProvider = (props: { children: React.ReactElement; i18n?: SSR
const clientViewerI18n = useViewerI18n(locale);
const i18n = clientViewerI18n.data?.i18n ?? props.i18n;
if (!i18n || !i18n._nextI18Next) {
return null;
}
return (
// @ts-expect-error AppWithTranslationHoc expects AppProps
<AppWithTranslationHoc pageProps={{ _nextI18Next: i18n._nextI18Next }}>
<AppWithTranslationHoc pageProps={{ _nextI18Next: i18n?._nextI18Next }}>
{props.children}
</AppWithTranslationHoc>
);