This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch fix/forms-style in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 7773a5bc46acf217bedb5547403f51ea90806ec4 Author: shuai <[email protected]> AuthorDate: Wed May 29 15:24:05 2024 +0800 fix: fix translation error --- i18n/zh_CN.yaml | 2 +- ui/src/pages/Admin/Dashboard/index.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yaml index 0e344c3e..83555b48 100644 --- a/i18n/zh_CN.yaml +++ b/i18n/zh_CN.yaml @@ -1153,7 +1153,7 @@ ui: resend: 重新发送 deactivate: 取消激活 active: 激活 - suspend: 已封禁 + suspend: 封禁 unsuspend: 解禁 close: 关闭 reopen: 重新打开 diff --git a/ui/src/pages/Admin/Dashboard/index.tsx b/ui/src/pages/Admin/Dashboard/index.tsx index 0af6868c..3740531e 100644 --- a/ui/src/pages/Admin/Dashboard/index.tsx +++ b/ui/src/pages/Admin/Dashboard/index.tsx @@ -21,7 +21,6 @@ import { FC } from 'react'; import { Row, Col } from 'react-bootstrap'; import { useTranslation } from 'react-i18next'; -import { siteInfoStore } from '@/stores'; import { useDashBoard } from '@/services'; import { @@ -33,7 +32,6 @@ import { const Dashboard: FC = () => { const { t } = useTranslation('translation', { keyPrefix: 'admin.dashboard' }); - const { name: siteName } = siteInfoStore((_) => _.siteInfo); const { data } = useDashBoard(); if (!data) {
