Skip to content

Commit

Permalink
fix: remove redundant props (#4787)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesenelir authored May 30, 2024
1 parent a325a29 commit 615c009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/app/components/i18n-server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type II18NServerProps = {
children: React.ReactNode
}

const I18NServer = async ({
const I18NServer = ({
children,
}: II18NServerProps) => {
const locale = getLocaleOnServer()
Expand Down
3 changes: 1 addition & 2 deletions web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 615c009

Please sign in to comment.