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:37:48 UTC

(incubator-answer) 01/01: fix: dashboard add reviews

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

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

commit dddd17c98fc70d40122258c64f9c661a0847cb1e
Author: shuai <li...@sifou.com>
AuthorDate: Fri Mar 22 12:37:29 2024 +0800

    fix: dashboard add reviews
---
 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 508775be..0b780a0f 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1437,6 +1437,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>