Browse Source

fix: remove redundant props (#4787)

Lesenelir 10 months ago
parent
commit
615c009c42
2 changed files with 2 additions and 3 deletions
  1. 1 1
      web/app/components/i18n-server.tsx
  2. 1 2
      web/app/layout.tsx

+ 1 - 1
web/app/components/i18n-server.tsx

@@ -7,7 +7,7 @@ export type II18NServerProps = {
   children: React.ReactNode
 }
 
-const I18NServer = async ({
+const I18NServer = ({
   children,
 }: II18NServerProps) => {
   const locale = getLocaleOnServer()

+ 1 - 2
web/app/layout.tsx

@@ -46,8 +46,7 @@ const LocaleLayout = ({
         <Topbar/>
         <BrowerInitor>
           <SentryInitor>
-            {/* @ts-expect-error Async Server Component */}
-            <I18nServer locale={locale}>{children}</I18nServer>
+            <I18nServer>{children}</I18nServer>
           </SentryInitor>
         </BrowerInitor>
       </body>