diff --git a/desktop/src/features/messages/ui/MessageReactions.tsx b/desktop/src/features/messages/ui/MessageReactions.tsx index 5bb6a7159..b43088128 100644 --- a/desktop/src/features/messages/ui/MessageReactions.tsx +++ b/desktop/src/features/messages/ui/MessageReactions.tsx @@ -6,6 +6,7 @@ import type { TimelineReaction } from "@/features/messages/types"; import { cn } from "@/shared/lib/cn"; import { emojiDisplayName } from "@/shared/lib/emojiName"; import { rewriteRelayUrl } from "@/shared/lib/mediaUrl"; +import { AnimatedCount } from "@/shared/ui/AnimatedCount"; import { isPositiveEmojiParticle, useEmojiBurst, @@ -433,7 +434,10 @@ function ReactionPill({ type="button" > - {reaction.count} + ); } @@ -463,7 +467,10 @@ function ReactionPill({ reaction={reaction} className={REACTION_GLYPH_CLASSES} /> - {reaction.count} + diff --git a/desktop/src/features/pulse/ui/NoteCard.tsx b/desktop/src/features/pulse/ui/NoteCard.tsx index 67f438386..a3e71f89f 100644 --- a/desktop/src/features/pulse/ui/NoteCard.tsx +++ b/desktop/src/features/pulse/ui/NoteCard.tsx @@ -14,6 +14,7 @@ import { useNoteByIdQuery } from "@/features/pulse/hooks"; import { getReplyParent, noteSnippet } from "@/features/pulse/lib/replies"; import type { UserNote } from "@/shared/api/socialTypes"; import type { ChannelMember, UserProfileSummary } from "@/shared/api/types"; +import { AnimatedCount } from "@/shared/ui/AnimatedCount"; import { Markdown } from "@/shared/ui/markdown"; import { Tooltip, TooltipContent, TooltipTrigger } from "@/shared/ui/tooltip"; import { UserAvatar } from "@/shared/ui/UserAvatar"; @@ -149,9 +150,7 @@ export function NoteCard({ const activeActionClass = "text-primary"; const countPlaceholder = ; const reactionCountLabel = - reactionCount > 0 ? ( - {reactionCount} - ) : null; + reactionCount > 0 ? : null; const currentUserAvatarUrl = currentUserProfile?.avatarUrl ?? null; const replyParentId = getReplyParent(note); @@ -224,7 +223,7 @@ export function NoteCard({