fix: attachment item avatar (#6650)

This commit is contained in:
Anmol Singh Bhatia
2025-02-19 18:02:39 +05:30
committed by GitHub
parent 827f47809b
commit 376f781052
2 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ export type TIssueAttachment = {
// required
updated_at: string;
updated_by: string;
created_by: string;
};
export type TIssueAttachmentUploadResponse = TFileSignedURLResponse & {

View File

@@ -71,11 +71,11 @@ export const IssueAttachmentsListItem: FC<TIssueAttachmentsListItem> = observer(
<Tooltip
isMobile={isMobile}
tooltipContent={`${
getUserDetails(attachment.updated_by)?.display_name ?? ""
getUserDetails(attachment?.created_by)?.display_name ?? ""
} uploaded on ${renderFormattedDate(attachment.updated_at)}`}
>
<div className="flex items-center justify-center">
<ButtonAvatars showTooltip userIds={attachment?.updated_by} />
<ButtonAvatars showTooltip userIds={attachment?.created_by} />
</div>
</Tooltip>
</>