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 = ({ 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') - } />
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 = ({ data }) => { - + = ({ visible, data }) => { - const { t } = useTranslation('translation', { keyPrefix: 'personal' }); if (!visible || !data?.length) { return null; } @@ -53,11 +51,7 @@ const Index: FC = ({ visible, data }) => {
- + = ({ visible, tabName, data }) => { tabName === 'bookmarks' ? item.create_time : item.created_at } className="me-3" - preFix={t('asked')} />