mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 04:13:41 -05:00
Fix tooltip for last updated date in projects list (#18715)
GitOrigin-RevId: 55feb364a108397a672cb7c118805988f3335e69
This commit is contained in:
parent
5f60158e99
commit
826d7822e0
2 changed files with 8 additions and 6 deletions
|
@ -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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -19,10 +19,12 @@ export default function LastUpdatedCell({ project }: LastUpdatedCellProps) {
|
|||
overlayProps={{ placement: 'top', trigger: ['hover', 'focus'] }}
|
||||
>
|
||||
{project.lastUpdatedBy ? (
|
||||
<span>
|
||||
<LastUpdatedBy
|
||||
lastUpdatedBy={project.lastUpdatedBy}
|
||||
lastUpdatedDate={lastUpdatedDate}
|
||||
/>
|
||||
</span>
|
||||
) : (
|
||||
<span>{lastUpdatedDate}</span>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue