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

shuai pushed a commit to branch feat/1.6.1/md
in repository https://gitbox.apache.org/repos/asf/answer.git

commit e90be519a7f94935075af0f0a1ffffeec70461c1
Author: shuai <lishuail...@sifou.com>
AuthorDate: Wed Jul 2 11:30:24 2025 +0800

    fix: list time to remove verb modification
---
 ui/src/components/QuestionList/index.tsx                     | 5 -----
 ui/src/pages/Search/components/SearchItem/index.tsx          | 6 +-----
 ui/src/pages/Users/Personal/components/Answers/index.tsx     | 8 +-------
 ui/src/pages/Users/Personal/components/DefaultList/index.tsx | 1 -
 4 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/ui/src/components/QuestionList/index.tsx 
b/ui/src/components/QuestionList/index.tsx
index a0f8b129..06e8fe9e 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -163,11 +163,6 @@ const QuestionList: FC<Props> = ({
                         curOrder === 'active' ? li.operated_at : li.created_at
                       }
                       className="text-secondary ms-1 flex-shrink-0"
-                      preFix={
-                        curOrder === 'active'
-                          ? t(li.operation_type)
-                          : t('asked')
-                      }
                     />
                   </div>
                   <h5 className="text-wrap text-break">
diff --git a/ui/src/pages/Search/components/SearchItem/index.tsx 
b/ui/src/pages/Search/components/SearchItem/index.tsx
index 2b0f002b..e74caa4b 100644
--- a/ui/src/pages/Search/components/SearchItem/index.tsx
+++ b/ui/src/pages/Search/components/SearchItem/index.tsx
@@ -81,11 +81,7 @@ const Index: FC<Props> = ({ data }) => {
         <BaseUserCard data={data.object?.user_info} showAvatar={false} />
 
         <span className="split-dot" />
-        <FormatTime
-          time={data.object?.created_at}
-          className="me-3"
-          preFix={data.object_type === 'question' ? 'asked' : 'answered'}
-        />
+        <FormatTime time={data.object?.created_at} className="me-3" />
 
         <Counts
           className="my-2 my-sm-0"
diff --git a/ui/src/pages/Users/Personal/components/Answers/index.tsx 
b/ui/src/pages/Users/Personal/components/Answers/index.tsx
index 4590a3cb..055d5635 100644
--- a/ui/src/pages/Users/Personal/components/Answers/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Answers/index.tsx
@@ -19,7 +19,6 @@
 
 import { FC, memo } from 'react';
 import { ListGroup, ListGroupItem } from 'react-bootstrap';
-import { useTranslation } from 'react-i18next';
 import { Link } from 'react-router-dom';
 
 import { FormatTime, Tag, Counts } from '@/components';
@@ -30,7 +29,6 @@ interface Props {
   data: any[];
 }
 const Index: FC<Props> = ({ visible, data }) => {
-  const { t } = useTranslation('translation', { keyPrefix: 'personal' });
   if (!visible || !data?.length) {
     return null;
   }
@@ -53,11 +51,7 @@ const Index: FC<Props> = ({ visible, data }) => {
               </Link>
             </h6>
             <div className="d-flex align-items-center small text-secondary 
mb-2">
-              <FormatTime
-                time={item.create_time}
-                className="me-3"
-                preFix={t('answered')}
-              />
+              <FormatTime time={item.create_time} className="me-3" />
 
               <Counts
                 data={{ votes: item?.vote_count, views: 0, answers: 0 }}
diff --git a/ui/src/pages/Users/Personal/components/DefaultList/index.tsx 
b/ui/src/pages/Users/Personal/components/DefaultList/index.tsx
index 85b9f2a6..6de0b8ca 100644
--- a/ui/src/pages/Users/Personal/components/DefaultList/index.tsx
+++ b/ui/src/pages/Users/Personal/components/DefaultList/index.tsx
@@ -70,7 +70,6 @@ const Index: FC<Props> = ({ visible, tabName, data }) => {
                   tabName === 'bookmarks' ? item.create_time : item.created_at
                 }
                 className="me-3"
-                preFix={t('asked')}
               />
 
               <Counts

Reply via email to