Fixing hover card for labeler accounts (#5414)
* Fixing hover card for labeler account * removing memo
This commit is contained in:
@@ -411,6 +411,7 @@ function Inner({
|
|||||||
() => currentAccount?.did === profile.did,
|
() => currentAccount?.did === profile.did,
|
||||||
[currentAccount, profile],
|
[currentAccount, profile],
|
||||||
)
|
)
|
||||||
|
const isLabeler = profile.associated?.labeler
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
@@ -419,11 +420,13 @@ function Inner({
|
|||||||
<UserAvatar
|
<UserAvatar
|
||||||
size={64}
|
size={64}
|
||||||
avatar={profile.avatar}
|
avatar={profile.avatar}
|
||||||
|
type={isLabeler ? 'labeler' : 'user'}
|
||||||
moderation={moderation.ui('avatar')}
|
moderation={moderation.ui('avatar')}
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
{!isMe &&
|
{!isMe &&
|
||||||
|
!isLabeler &&
|
||||||
(isBlockedUser ? (
|
(isBlockedUser ? (
|
||||||
<Link
|
<Link
|
||||||
to={profileURL}
|
to={profileURL}
|
||||||
|
|||||||
Reference in New Issue
Block a user