From 615c009c42ecb036d0ba2d30ec4ee779100caf4e Mon Sep 17 00:00:00 2001 From: Lesenelir Date: Thu, 30 May 2024 18:58:08 +0800 Subject: [PATCH] fix: remove redundant props (#4787) --- web/app/components/i18n-server.tsx | 2 +- web/app/layout.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/app/components/i18n-server.tsx b/web/app/components/i18n-server.tsx index 25e999ed4..bea8332db 100644 --- a/web/app/components/i18n-server.tsx +++ b/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() diff --git a/web/app/layout.tsx b/web/app/layout.tsx index 2f6a6bb82..ca665fb36 100644 --- a/web/app/layout.tsx +++ b/web/app/layout.tsx @@ -46,8 +46,7 @@ const LocaleLayout = ({ - {/* @ts-expect-error Async Server Component */} - {children} + {children}