rm non-functional link from card

This commit is contained in:
Samuel Newman
2025-08-21 16:07:00 +03:00
parent 66c64dbbb5
commit ca4e469a61
@@ -29,7 +29,6 @@ import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRightIcon} from '#/compon
import {Loader} from '#/components/Loader' import {Loader} from '#/components/Loader'
import * as ProfileCard from '#/components/ProfileCard' import * as ProfileCard from '#/components/ProfileCard'
import {boostInterests} from '#/components/ProgressGuide/FollowDialog' import {boostInterests} from '#/components/ProgressGuide/FollowDialog'
import {SubtleHover} from '#/components/SubtleHover'
import * as toast from '#/components/Toast' import * as toast from '#/components/Toast'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
import type * as bsky from '#/types/bsky' import type * as bsky from '#/types/bsky'
@@ -278,65 +277,47 @@ function SuggestedProfileCard({
}) { }) {
const t = useTheme() const t = useTheme()
return ( return (
<ProfileCard.Link <View
profile={profile} style={[
onPress={() => { a.flex_1,
logger.metric( a.w_full,
'suggestedUser:press', a.py_lg,
{ a.px_xl,
logContext: 'Onboarding', position !== 0 && a.border_t,
recId: undefined, t.atoms.border_contrast_low,
position, ]}>
}, <ProfileCard.Outer>
{statsig: true}, <ProfileCard.Header>
) <ProfileCard.Avatar
}}> profile={profile}
{s => ( moderationOpts={moderationOpts}
<> disabledPreview
<SubtleHover hover={s.hovered || s.pressed} /> />
<View <ProfileCard.NameAndHandle
style={[ profile={profile}
a.flex_1, moderationOpts={moderationOpts}
a.w_full, />
a.py_lg, <ProfileCard.FollowButton
a.px_xl, profile={profile}
position !== 0 && a.border_t, moderationOpts={moderationOpts}
t.atoms.border_contrast_low, withIcon={false}
]}> logContext="ExploreSuggestedAccounts"
<ProfileCard.Outer> onFollow={() => {
<ProfileCard.Header> logger.metric(
<ProfileCard.Avatar 'suggestedUser:follow',
profile={profile} {
moderationOpts={moderationOpts} logContext: 'Onboarding',
/> location: 'Card',
<ProfileCard.NameAndHandle recId: undefined,
profile={profile} position,
moderationOpts={moderationOpts} },
/> {statsig: true},
<ProfileCard.FollowButton )
profile={profile} }}
moderationOpts={moderationOpts} />
withIcon={false} </ProfileCard.Header>
logContext="ExploreSuggestedAccounts" <ProfileCard.Description profile={profile} numberOfLines={3} />
onFollow={() => { </ProfileCard.Outer>
logger.metric( </View>
'suggestedUser:follow',
{
logContext: 'Onboarding',
location: 'Card',
recId: undefined,
position,
},
{statsig: true},
)
}}
/>
</ProfileCard.Header>
<ProfileCard.Description profile={profile} numberOfLines={3} />
</ProfileCard.Outer>
</View>
</>
)}
</ProfileCard.Link>
) )
} }