Display see more link for suggested users in profile header (#10134)

This commit is contained in:
DS Boyce
2026-03-31 14:54:51 -07:00
committed by GitHub
parent 498d321bb1
commit 2262040797
+32 -36
View File
@@ -560,32 +560,30 @@ export function ProfileGrid({
<Text style={[a.text_sm, a.font_semi_bold, t.atoms.text]}> <Text style={[a.text_sm, a.font_semi_bold, t.atoms.text]}>
<Trans>Suggested for you</Trans> <Trans>Suggested for you</Trans>
</Text> </Text>
{!isProfileHeaderContext && ( <Button
<Button label={l`See more suggested profiles`}
label={l`See more suggested profiles`} onPress={() => {
onPress={() => { followDialogControl.open()
followDialogControl.open() ax.metric('suggestedUser:seeMore', {
ax.metric('suggestedUser:seeMore', { logContext,
logContext, recId,
recId, })
}) }}>
}}> {({hovered}) => (
{({hovered}) => ( <Text
<Text style={[
style={[ a.text_sm,
a.text_sm, {color: t.palette.primary_500},
{color: t.palette.primary_500}, hovered &&
hovered && web({
web({ textDecorationLine: 'underline',
textDecorationLine: 'underline', textDecorationColor: t.palette.primary_500,
textDecorationColor: t.palette.primary_500, }),
}), ]}>
]}> <Trans>See more</Trans>
<Trans>See more</Trans> </Text>
</Text> )}
)} </Button>
</Button>
)}
</View> </View>
<FollowDialogWithoutGuide control={followDialogControl} /> <FollowDialogWithoutGuide control={followDialogControl} />
<LayoutAnimationConfig skipExiting skipEntering> <LayoutAnimationConfig skipExiting skipEntering>
@@ -605,16 +603,14 @@ export function ProfileGrid({
decelerationRate="fast"> decelerationRate="fast">
{content} {content}
{!isProfileHeaderContext && ( <SeeMoreSuggestedProfilesCard
<SeeMoreSuggestedProfilesCard onPress={() => {
onPress={() => { followDialogControl.open()
followDialogControl.open() ax.metric('suggestedUser:seeMore', {
ax.metric('suggestedUser:seeMore', { logContext,
logContext, })
}) }}
}} />
/>
)}
</ScrollView> </ScrollView>
</BlockDrawerGesture> </BlockDrawerGesture>
)} )}