A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: list time to remove verb modification
shuaie90be519a7f9
diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsxindex 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.tsxindex 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" /><CountsclassName="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.tsxindex 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" /><Countsdata={{ 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.tsxindex 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