Fix tooltip for last updated date in projects list (#18715)

GitOrigin-RevId: 55feb364a108397a672cb7c118805988f3335e69
This commit is contained in:
Alf Eaton 2024-06-11 09:36:29 +01:00 committed by Copybot
parent 5f60158e99
commit 826d7822e0
2 changed files with 8 additions and 6 deletions

View file

@ -12,11 +12,11 @@ export const LastUpdatedBy: FC<{
const userName = getUserName(lastUpdatedBy)
return (
<span>
<>
{t('last_updated_date_by_x', {
lastUpdatedDate,
person: userName === 'You' ? t('you') : userName,
})}
</span>
</>
)
}

View file

@ -19,10 +19,12 @@ export default function LastUpdatedCell({ project }: LastUpdatedCellProps) {
overlayProps={{ placement: 'top', trigger: ['hover', 'focus'] }}
>
{project.lastUpdatedBy ? (
<LastUpdatedBy
lastUpdatedBy={project.lastUpdatedBy}
lastUpdatedDate={lastUpdatedDate}
/>
<span>
<LastUpdatedBy
lastUpdatedBy={project.lastUpdatedBy}
lastUpdatedDate={lastUpdatedDate}
/>
</span>
) : (
<span>{lastUpdatedDate}</span>
)}