fix: timeline response changed

This commit is contained in:
shuai 2023-09-14 16:00:18 +08:00
parent 0269c30516
commit a8c37f4dab
4 changed files with 2 additions and 8 deletions

View File

@ -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 {

View File

@ -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'),

View File

@ -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' }),

View File

@ -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}
/>