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

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

commit 2be1807b0fd1b0558f4415a4c60ab3ec83b4b989
Author: shuai <[email protected]>
AuthorDate: Thu Jul 11 17:36:17 2024 +0800

    fix: replace quetion list sort requent -> hot
---
 i18n/en_US.yaml                          | 2 +-
 i18n/zh_CN.yaml                          | 2 +-
 ui/src/common/interface.ts               | 2 +-
 ui/src/components/QuestionList/index.tsx | 2 +-
 ui/src/services/client/question.ts       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index 88fd6e7f..9be207f7 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1290,7 +1290,7 @@ ui:
     answers: Answers
     newest: Newest
     active: Active
-    frequent: Frequent
+    hot: Hot
     score: Score
     unanswered: Unanswered
     modified: modified
diff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yaml
index 2c438316..5c3dd862 100644
--- a/i18n/zh_CN.yaml
+++ b/i18n/zh_CN.yaml
@@ -1249,7 +1249,7 @@ ui:
     answers: 回答
     newest: 最新
     active: 活跃
-    frequent: 浏览量
+    hot: 热度
     score: 评分
     unanswered: 未回答
     modified: 更新于
diff --git a/ui/src/common/interface.ts b/ui/src/common/interface.ts
index 019786f1..0acd2f02 100644
--- a/ui/src/common/interface.ts
+++ b/ui/src/common/interface.ts
@@ -290,7 +290,7 @@ export interface LangsType {
 export type QuestionOrderBy =
   | 'newest'
   | 'active'
-  | 'frequent'
+  | 'hot'
   | 'score'
   | 'unanswered';
 
diff --git a/ui/src/components/QuestionList/index.tsx 
b/ui/src/components/QuestionList/index.tsx
index 2d9c447c..d9b46dd2 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -40,7 +40,7 @@ import { useSkeletonControl } from '@/hooks';
 export const QUESTION_ORDER_KEYS: Type.QuestionOrderBy[] = [
   'newest',
   'active',
-  'frequent',
+  'hot',
   'score',
   'unanswered',
 ];
diff --git a/ui/src/services/client/question.ts 
b/ui/src/services/client/question.ts
index d027c83b..0e382c26 100644
--- a/ui/src/services/client/question.ts
+++ b/ui/src/services/client/question.ts
@@ -40,7 +40,7 @@ export const useHotQuestions = (
   params: Type.QueryQuestionsReq = {
     page: 1,
     page_size: 6,
-    order: 'frequent',
+    order: 'hot',
     in_days: 7,
   },
 ) => {

Reply via email to