Skip to content

Commit

Permalink
feat(frontend): show date of user join (#2901)
Browse files Browse the repository at this point in the history
* feat(frontend): show date of user join

Shows and formats the date when the user joined, on hover. Can add `cursor-help` if wanted.

Resolves #2243

* chore(frontend): lint
  • Loading branch information
Erb3 authored Nov 8, 2024
1 parent 4bcdb3f commit 33ad04d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/frontend/src/pages/user/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@
{{ formatCompactNumber(sumDownloads) }}
downloads
</div>
<div class="flex items-center gap-2 font-semibold">
<div
v-tooltip="
formatMessage(commonMessages.dateAtTimeTooltip, {
date: new Date(user.created),
time: new Date(user.created),
})
"
class="flex items-center gap-2 font-semibold"
>
<CalendarIcon class="h-6 w-6 text-secondary" />
Joined
{{ formatRelativeTime(user.created) }}
Expand Down

0 comments on commit 33ad04d

Please sign in to comment.