From fc5fa000b9bb186e3491130d876227248946d838 Mon Sep 17 00:00:00 2001 From: jahooma Date: Thu, 13 Jan 2022 15:24:14 -0600 Subject: [PATCH] Linkify user avatars in feed --- web/components/contract-feed.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/web/components/contract-feed.tsx b/web/components/contract-feed.tsx index b9f1e800..d50c9edb 100644 --- a/web/components/contract-feed.tsx +++ b/web/components/contract-feed.tsx @@ -39,7 +39,7 @@ function FeedComment(props: { activityItem: any }) { const { person, text, amount, outcome, createdTime } = activityItem return ( <> -
+
+

- - {person.name} - {' '} + {' '} placed {formatMoney(amount)} on {' '}

@@ -371,7 +373,7 @@ function toFeedComment(bet: Bet, comment: Comment) { // Invariant: bet.comment exists text: comment.text, person: { - href: `/${comment.userUsername}`, + username: comment.userUsername, name: comment.userName, avatarUrl: comment.userAvatarUrl, },