[🐴] Disable hover card when blocked or blocking (#4041)
This commit is contained in:
parent
9499d4343d
commit
b635d000b5
4 changed files with 11 additions and 3 deletions
|
@ -50,8 +50,9 @@ interface EditableUserAvatarProps extends BaseUserAvatarProps {
|
|||
|
||||
interface PreviewableUserAvatarProps extends BaseUserAvatarProps {
|
||||
moderation?: ModerationUI
|
||||
onBeforePress?: () => void
|
||||
profile: AppBskyActorDefs.ProfileViewBasic
|
||||
disable?: boolean
|
||||
onBeforePress?: () => void
|
||||
}
|
||||
|
||||
const BLUR_AMOUNT = isWeb ? 5 : 100
|
||||
|
@ -383,6 +384,7 @@ export {EditableUserAvatar}
|
|||
let PreviewableUserAvatar = ({
|
||||
moderation,
|
||||
profile,
|
||||
disable,
|
||||
onBeforePress,
|
||||
...rest
|
||||
}: PreviewableUserAvatarProps): React.ReactNode => {
|
||||
|
@ -395,7 +397,7 @@ let PreviewableUserAvatar = ({
|
|||
}, [profile, queryClient, onBeforePress])
|
||||
|
||||
return (
|
||||
<ProfileHoverCard did={profile.did}>
|
||||
<ProfileHoverCard did={profile.did} disable={disable}>
|
||||
<Link
|
||||
label={_(msg`See profile`)}
|
||||
to={makeProfileLink({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue