Browse Source

fix: remove redundant props (#4787)

tags/0.6.10
Lesenelir 1 year ago
parent
commit
615c009c42
No account linked to committer's email address
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 View File

children: React.ReactNode children: React.ReactNode
} }


const I18NServer = async ({
const I18NServer = ({
children, children,
}: II18NServerProps) => { }: II18NServerProps) => {
const locale = getLocaleOnServer() const locale = getLocaleOnServer()

+ 1
- 2
web/app/layout.tsx View File

<Topbar/> <Topbar/>
<BrowerInitor> <BrowerInitor>
<SentryInitor> <SentryInitor>
{/* @ts-expect-error Async Server Component */}
<I18nServer locale={locale}>{children}</I18nServer>
<I18nServer>{children}</I18nServer>
</SentryInitor> </SentryInitor>
</BrowerInitor> </BrowerInitor>
</body> </body>

Loading…
Cancel
Save