You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/03/22 04:38:15 UTC

(incubator-answer) branch test updated: Feat/1.3.0/UI (#874)

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/test by this push:
     new b942d888 Feat/1.3.0/UI (#874)
b942d888 is described below

commit b942d88808a721cc16f7000a808bf735260f3a64
Author: dashuai <li...@sifou.com>
AuthorDate: Fri Mar 22 12:38:08 2024 +0800

    Feat/1.3.0/UI (#874)
---
 i18n/en_US.yaml                                              | 1 +
 ui/src/pages/Admin/Dashboard/components/Statistics/index.tsx | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index 7c238e99..943608dd 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1452,6 +1452,7 @@ ui:
       votes: "Votes:"
       users: "Users:"
       flags: "Flags:"
+      reviews: "Reviews:"
       site_health: Site health
       version: "Version:"
       https: "HTTPS:"
diff --git a/ui/src/pages/Admin/Dashboard/components/Statistics/index.tsx b/ui/src/pages/Admin/Dashboard/components/Statistics/index.tsx
index d0f5f410..c95eaba7 100644
--- a/ui/src/pages/Admin/Dashboard/components/Statistics/index.tsx
+++ b/ui/src/pages/Admin/Dashboard/components/Statistics/index.tsx
@@ -56,9 +56,9 @@ const Statistics: FC<IProps> = ({ data }) => {
             <strong>{data.user_count}</strong>
           </Col>
           <Col xs={6}>
-            <span className="text-secondary me-1">{t('flags')}</span>
+            <span className="text-secondary me-1">{t('reviews')}</span>
             <strong>
-              <Link to="/review?type=flagged_post" className="ms-2">
+              <Link to="/review" className="ms-2">
                 {data.report_count}
               </Link>
             </strong>