use Link instead of manual navigation (#8930)
This commit is contained in:
@@ -29,7 +29,7 @@ import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
|||||||
import * as FeedCard from '#/components/FeedCard'
|
import * as FeedCard from '#/components/FeedCard'
|
||||||
import {ArrowRight_Stroke2_Corner0_Rounded as ArrowRight} from '#/components/icons/Arrow'
|
import {ArrowRight_Stroke2_Corner0_Rounded as ArrowRight} from '#/components/icons/Arrow'
|
||||||
import {Hashtag_Stroke2_Corner0_Rounded as Hashtag} from '#/components/icons/Hashtag'
|
import {Hashtag_Stroke2_Corner0_Rounded as Hashtag} from '#/components/icons/Hashtag'
|
||||||
import {InlineLinkText} from '#/components/Link'
|
import {InlineLinkText, Link} from '#/components/Link'
|
||||||
import * as ProfileCard from '#/components/ProfileCard'
|
import * as ProfileCard from '#/components/ProfileCard'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import type * as bsky from '#/types/bsky'
|
import type * as bsky from '#/types/bsky'
|
||||||
@@ -423,28 +423,28 @@ export function ProfileGrid({
|
|||||||
function SeeMoreSuggestedProfilesCard() {
|
function SeeMoreSuggestedProfilesCard() {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
const navigation = useNavigation<NavigationProp>()
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Link
|
||||||
|
to="/search"
|
||||||
color="primary"
|
color="primary"
|
||||||
label={_(msg`Browse more accounts on the Explore page`)}
|
label={_(msg`Browse more accounts on the Explore page`)}
|
||||||
style={[
|
style={[
|
||||||
a.flex_col,
|
a.flex_col,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
a.gap_xs,
|
a.justify_center,
|
||||||
|
a.gap_sm,
|
||||||
a.p_md,
|
a.p_md,
|
||||||
a.rounded_lg,
|
a.rounded_lg,
|
||||||
t.atoms.shadow_sm,
|
t.atoms.shadow_sm,
|
||||||
{width: FINAL_CARD_WIDTH},
|
{width: FINAL_CARD_WIDTH},
|
||||||
]}
|
]}>
|
||||||
onPress={() => navigation.navigate('SearchTab')}>
|
|
||||||
<ButtonIcon icon={ArrowRight} size="lg" />
|
<ButtonIcon icon={ArrowRight} size="lg" />
|
||||||
<ButtonText
|
<ButtonText
|
||||||
style={[a.text_md, a.font_medium, a.leading_snug, a.text_center]}>
|
style={[a.text_md, a.font_medium, a.leading_snug, a.text_center]}>
|
||||||
<Trans>See more</Trans>
|
<Trans>See more</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user