chore: remove unused code (#1989)
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
Reference in New Issue
Block a user