feat(ui): add "See More Suggested Profiles" card
This commit is contained in:
committed by
Austin McKinley
parent
c80e5e3da5
commit
e4fa6d7209
@@ -415,6 +415,8 @@ export function ProfileGrid({
|
|||||||
style={[a.overflow_visible]}>
|
style={[a.overflow_visible]}>
|
||||||
<View style={[a.px_lg, a.pb_lg, a.flex_row, a.gap_md]}>
|
<View style={[a.px_lg, a.pb_lg, a.flex_row, a.gap_md]}>
|
||||||
{content}
|
{content}
|
||||||
|
|
||||||
|
<SeeMoreSuggestedProfilesCard />
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</View>
|
</View>
|
||||||
@@ -424,6 +426,32 @@ export function ProfileGrid({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function SeeMoreSuggestedProfilesCard() {
|
||||||
|
const navigation = useNavigation<NavigationProp>()
|
||||||
|
const t = useTheme()
|
||||||
|
const {_} = useLingui()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Button
|
||||||
|
label={_(msg`Browse more accounts on the Explore page`)}
|
||||||
|
onPress={() => {
|
||||||
|
navigation.navigate('SearchTab')
|
||||||
|
}}>
|
||||||
|
<CardOuter style={[a.flex_1, t.atoms.shadow_sm]}>
|
||||||
|
<View style={[a.flex_1, a.justify_center]}>
|
||||||
|
<View style={[a.flex_col, a.align_center, a.gap_md]}>
|
||||||
|
<Text style={[a.leading_snug, a.text_center]}>
|
||||||
|
<Trans>See more accounts you might like</Trans>
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
<Arrow size="xl" />
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</CardOuter>
|
||||||
|
</Button>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
export function SuggestedFeeds() {
|
export function SuggestedFeeds() {
|
||||||
const numFeedsToDisplay = 3
|
const numFeedsToDisplay = 3
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
|
|||||||
Reference in New Issue
Block a user