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