fix: server component use translate errorts lint error (#1732)

This commit is contained in:
Joel
2023-12-11 10:15:49 +08:00
committed by GitHub
parent 3675d2eae8
commit 79b4366203
2 changed files with 4 additions and 5 deletions

View File

@@ -2,11 +2,11 @@ import classNames from 'classnames'
import style from '../list.module.css'
import Apps from './Apps'
import { getLocaleOnServer } from '@/i18n/server'
import { useTranslation } from '@/i18n/i18next-serverside-config'
import { useTranslation as translate } from '@/i18n/i18next-serverside-config'
const AppList = async () => {
const locale = getLocaleOnServer()
const { t } = await useTranslation(locale, 'app')
const { t } = await translate(locale, 'app')
return (
<div className='flex flex-col overflow-auto bg-gray-100 shrink-0 grow'>