fix nested <a> suggested accounts
This commit is contained in:
@@ -160,6 +160,7 @@ export function Avatar({
|
|||||||
moderationOpts,
|
moderationOpts,
|
||||||
onPress,
|
onPress,
|
||||||
disabledPreview,
|
disabledPreview,
|
||||||
|
disableNavigation,
|
||||||
liveOverride,
|
liveOverride,
|
||||||
size = 40,
|
size = 40,
|
||||||
}: {
|
}: {
|
||||||
@@ -167,6 +168,7 @@ export function Avatar({
|
|||||||
moderationOpts: ModerationOpts
|
moderationOpts: ModerationOpts
|
||||||
onPress?: () => void
|
onPress?: () => void
|
||||||
disabledPreview?: boolean
|
disabledPreview?: boolean
|
||||||
|
disableNavigation?: boolean
|
||||||
liveOverride?: boolean
|
liveOverride?: boolean
|
||||||
size?: number
|
size?: number
|
||||||
}) {
|
}) {
|
||||||
@@ -188,6 +190,7 @@ export function Avatar({
|
|||||||
profile={profile}
|
profile={profile}
|
||||||
moderation={moderation.ui('avatar')}
|
moderation={moderation.ui('avatar')}
|
||||||
onBeforePress={onPress}
|
onBeforePress={onPress}
|
||||||
|
disableNavigation={disableNavigation}
|
||||||
live={liveOverride ?? live}
|
live={liveOverride ?? live}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import {boostInterests, InterestTabs} from '#/components/InterestTabs'
|
|||||||
import * as ProfileCard from '#/components/ProfileCard'
|
import * as ProfileCard from '#/components/ProfileCard'
|
||||||
import {SubtleHover} from '#/components/SubtleHover'
|
import {SubtleHover} from '#/components/SubtleHover'
|
||||||
import {useAnalytics} from '#/analytics'
|
import {useAnalytics} from '#/analytics'
|
||||||
|
import {IS_WEB} from '#/env'
|
||||||
import {type app} from '#/lexicons'
|
import {type app} from '#/lexicons'
|
||||||
import type * as bsky from '#/types/bsky'
|
import type * as bsky from '#/types/bsky'
|
||||||
|
|
||||||
@@ -138,6 +139,7 @@ let SuggestedProfileCard = ({
|
|||||||
<ProfileCard.Avatar
|
<ProfileCard.Avatar
|
||||||
profile={profile}
|
profile={profile}
|
||||||
moderationOpts={moderationOpts}
|
moderationOpts={moderationOpts}
|
||||||
|
disableNavigation={IS_WEB}
|
||||||
/>
|
/>
|
||||||
<ProfileCard.NameAndHandle
|
<ProfileCard.NameAndHandle
|
||||||
profile={profile}
|
profile={profile}
|
||||||
|
|||||||
Reference in New Issue
Block a user