fix: list time to remove verb modification
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user