Remove extra wrapper on notification user links (#3548)

zio/stable
Hailey 2024-04-13 16:55:49 -07:00 committed by GitHub
parent 41925bdc07
commit 7543f72b77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 23 additions and 24 deletions

View File

@ -420,31 +420,30 @@ function ExpandedAuthorsList({
to={makeProfileLink({ to={makeProfileLink({
did: author.did, did: author.did,
handle: author.handle, handle: author.handle,
})}> })}
<View style={styles.expandedAuthor}> style={styles.expandedAuthor}>
<View style={styles.expandedAuthorAvi}> <View style={styles.expandedAuthorAvi}>
<ProfileHoverCard did={author.did}> <ProfileHoverCard did={author.did}>
<UserAvatar <UserAvatar
size={35} size={35}
avatar={author.avatar} avatar={author.avatar}
moderation={author.moderation.ui('avatar')} moderation={author.moderation.ui('avatar')}
type={author.associated?.labeler ? 'labeler' : 'user'} type={author.associated?.labeler ? 'labeler' : 'user'}
/> />
</ProfileHoverCard> </ProfileHoverCard>
</View> </View>
<View style={s.flex1}> <View style={s.flex1}>
<Text <Text
type="lg-bold" type="lg-bold"
numberOfLines={1} numberOfLines={1}
style={pal.text} style={pal.text}
lineHeight={1.2}> lineHeight={1.2}>
{sanitizeDisplayName(author.displayName || author.handle)} {sanitizeDisplayName(author.displayName || author.handle)}
&nbsp; &nbsp;
<Text style={[pal.textLight]} lineHeight={1.2}> <Text style={[pal.textLight]} lineHeight={1.2}>
{sanitizeHandle(author.handle)} {sanitizeHandle(author.handle)}
</Text>
</Text> </Text>
</View> </Text>
</View> </View>
</NewLink> </NewLink>
))} ))}