mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Fix tooltip for last updated date in projects list (#18715)
GitOrigin-RevId: 55feb364a108397a672cb7c118805988f3335e69
This commit is contained in:
@@ -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 ? (
|
||||
<LastUpdatedBy
|
||||
lastUpdatedBy={project.lastUpdatedBy}
|
||||
lastUpdatedDate={lastUpdatedDate}
|
||||
/>
|
||||
<span>
|
||||
<LastUpdatedBy
|
||||
lastUpdatedBy={project.lastUpdatedBy}
|
||||
lastUpdatedDate={lastUpdatedDate}
|
||||
/>
|
||||
</span>
|
||||
) : (
|
||||
<span>{lastUpdatedDate}</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user