Use disableLink instead
This commit is contained in:
@@ -160,7 +160,7 @@ export function Avatar({
|
||||
moderationOpts,
|
||||
onPress,
|
||||
disabledPreview,
|
||||
disableNavigation,
|
||||
disableLink,
|
||||
liveOverride,
|
||||
size = 40,
|
||||
}: {
|
||||
@@ -168,7 +168,7 @@ export function Avatar({
|
||||
moderationOpts: ModerationOpts
|
||||
onPress?: () => void
|
||||
disabledPreview?: boolean
|
||||
disableNavigation?: boolean
|
||||
disableLink?: boolean
|
||||
liveOverride?: boolean
|
||||
size?: number
|
||||
}) {
|
||||
@@ -190,7 +190,7 @@ export function Avatar({
|
||||
profile={profile}
|
||||
moderation={moderation.ui('avatar')}
|
||||
onBeforePress={onPress}
|
||||
disableNavigation={disableNavigation}
|
||||
disableLink={disableLink}
|
||||
live={liveOverride ?? live}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -139,7 +139,7 @@ let SuggestedProfileCard = ({
|
||||
<ProfileCard.Avatar
|
||||
profile={profile}
|
||||
moderationOpts={moderationOpts}
|
||||
disableNavigation={IS_WEB}
|
||||
disableLink={IS_WEB}
|
||||
/>
|
||||
<ProfileCard.NameAndHandle
|
||||
profile={profile}
|
||||
|
||||
@@ -90,6 +90,7 @@ interface PreviewableUserAvatarProps extends BaseUserAvatarProps {
|
||||
profile: bsky.profile.AnyProfileView
|
||||
disableHoverCard?: boolean
|
||||
disableNavigation?: boolean
|
||||
disableLink?: boolean
|
||||
onBeforePress?: () => void
|
||||
}
|
||||
|
||||
@@ -551,6 +552,7 @@ let PreviewableUserAvatar = ({
|
||||
profile,
|
||||
disableHoverCard,
|
||||
disableNavigation,
|
||||
disableLink,
|
||||
onBeforePress,
|
||||
live,
|
||||
...props
|
||||
@@ -611,6 +613,8 @@ let PreviewableUserAvatar = ({
|
||||
embed={status.embed}
|
||||
/>
|
||||
</>
|
||||
) : disableLink ? (
|
||||
avatarEl
|
||||
) : (
|
||||
<Link
|
||||
label={_(
|
||||
|
||||
Reference in New Issue
Block a user