Skip to content

Commit

Permalink
Remove extra wrapper on notification user links (#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Apr 13, 2024
1 parent 41925bd commit 7543f72
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions src/view/com/notifications/FeedItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,31 +420,30 @@ function ExpandedAuthorsList({
to={makeProfileLink({
did: author.did,
handle: author.handle,
})}>
<View style={styles.expandedAuthor}>
<View style={styles.expandedAuthorAvi}>
<ProfileHoverCard did={author.did}>
<UserAvatar
size={35}
avatar={author.avatar}
moderation={author.moderation.ui('avatar')}
type={author.associated?.labeler ? 'labeler' : 'user'}
/>
</ProfileHoverCard>
</View>
<View style={s.flex1}>
<Text
type="lg-bold"
numberOfLines={1}
style={pal.text}
lineHeight={1.2}>
{sanitizeDisplayName(author.displayName || author.handle)}
&nbsp;
<Text style={[pal.textLight]} lineHeight={1.2}>
{sanitizeHandle(author.handle)}
</Text>
})}
style={styles.expandedAuthor}>
<View style={styles.expandedAuthorAvi}>
<ProfileHoverCard did={author.did}>
<UserAvatar
size={35}
avatar={author.avatar}
moderation={author.moderation.ui('avatar')}
type={author.associated?.labeler ? 'labeler' : 'user'}
/>
</ProfileHoverCard>
</View>
<View style={s.flex1}>
<Text
type="lg-bold"
numberOfLines={1}
style={pal.text}
lineHeight={1.2}>
{sanitizeDisplayName(author.displayName || author.handle)}
&nbsp;
<Text style={[pal.textLight]} lineHeight={1.2}>
{sanitizeHandle(author.handle)}
</Text>
</View>
</Text>
</View>
</NewLink>
))}
Expand Down

0 comments on commit 7543f72

Please sign in to comment.