feat: tooltip with concrete date on relative timestamps in SPA

This commit is contained in:
2026-07-10 00:22:14 +02:00
parent 2e2adef5e0
commit 5d4622e046
4 changed files with 25 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ import { EmptyState } from "@/components/empty-state"
import { SwipeTabs } from "@/components/swipe-tabs"
import { VirtualList } from "@/components/virtual-list"
import { useInfiniteDiary } from "@/hooks/use-diary"
import { timeAgo } from "@/lib/date"
import { TimeAgo } from "@/components/time-ago"
import type { UserProfileResponse } from "@/lib/api/users"
type ProfileViewProps = {
@@ -168,7 +168,7 @@ function DiaryTab({ sortBy, userId, search }: { sortBy: string; userId?: string;
movie={e.movie}
rating={e.review.rating}
comment={e.review.comment}
subtitle={t("profile.watchedAgo", { when: timeAgo(e.review.watched_at) })}
subtitle={<><TimeAgo date={e.review.watched_at} /></>}
variant="compact"
/>
)}