chore: remove unused code (#1989)
This commit is contained in:
parent
f7939c758f
commit
eed5fdd768
12 changed files with 7 additions and 298 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react'
|
||||
import I18N from './i18n'
|
||||
import { ToastProvider } from './base/toast'
|
||||
import { getDictionary, getLocaleOnServer } from '@/i18n/server'
|
||||
import { getLocaleOnServer } from '@/i18n/server'
|
||||
|
||||
export type II18NServerProps = {
|
||||
children: React.ReactNode
|
||||
|
|
@ -11,10 +11,9 @@ const I18NServer = async ({
|
|||
children,
|
||||
}: II18NServerProps) => {
|
||||
const locale = getLocaleOnServer()
|
||||
const dictionary = await getDictionary(locale)
|
||||
|
||||
return (
|
||||
<I18N {...{ locale, dictionary }}>
|
||||
<I18N {...{ locale }}>
|
||||
<ToastProvider>{children}</ToastProvider>
|
||||
</I18N>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue