chore: remove unused code (#1989)

This commit is contained in:
crazywoola
2024-01-11 11:08:32 +08:00
committed by GitHub
parent f7939c758f
commit eed5fdd768
12 changed files with 7 additions and 298 deletions

View File

@@ -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>
)