mirror of https://gitee.com/answerdev/answer.git
fix: timeline response changed
This commit is contained in:
parent
0269c30516
commit
a8c37f4dab
|
@ -509,13 +509,12 @@ export interface TimelineItem {
|
|||
revision_id: number;
|
||||
created_at: number;
|
||||
activity_type: string;
|
||||
username: string;
|
||||
user_display_name: string;
|
||||
comment: string;
|
||||
object_id: string;
|
||||
object_type: string;
|
||||
cancelled: boolean;
|
||||
cancelled_at: any;
|
||||
user_info: UserInfoBase;
|
||||
}
|
||||
|
||||
export interface TimelineObject {
|
||||
|
|
|
@ -8,7 +8,6 @@ const AnswerActions = ({ itemData, curFilter, refreshList }) => {
|
|||
const { t } = useTranslation('translation', { keyPrefix: 'delete' });
|
||||
|
||||
const handleAction = (type) => {
|
||||
console.log(type);
|
||||
if (type === 'delete') {
|
||||
Modal.confirm({
|
||||
title: t('title'),
|
||||
|
|
|
@ -11,7 +11,6 @@ const AnswerActions = ({ itemData, refreshList, curFilter }) => {
|
|||
const toast = useToast();
|
||||
|
||||
const handleAction = (type) => {
|
||||
console.log(type);
|
||||
if (type === 'delete') {
|
||||
Modal.confirm({
|
||||
title: t('title', { keyPrefix: 'delete' }),
|
||||
|
|
|
@ -109,10 +109,7 @@ const Index: FC<Props> = ({ data, isAdmin, objectInfo, revisionList }) => {
|
|||
) : (
|
||||
<BaseUserCard
|
||||
className="fs-normal"
|
||||
data={{
|
||||
username: data.username,
|
||||
display_name: data.user_display_name,
|
||||
}}
|
||||
data={data?.user_info}
|
||||
showAvatar={false}
|
||||
showReputation={false}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue