Bluesky app fork with some witchin' additions 💫

use Link instead of manual navigation (#8930)

authored by samuel.fm and committed by

GitHub 27c10585 2f2b542e

+7 -7
+7 -7
src/components/FeedInterstitials.tsx
··· 29 29 import * as FeedCard from '#/components/FeedCard' 30 30 import {ArrowRight_Stroke2_Corner0_Rounded as ArrowRight} from '#/components/icons/Arrow' 31 31 import {Hashtag_Stroke2_Corner0_Rounded as Hashtag} from '#/components/icons/Hashtag' 32 - import {InlineLinkText} from '#/components/Link' 32 + import {InlineLinkText, Link} from '#/components/Link' 33 33 import * as ProfileCard from '#/components/ProfileCard' 34 34 import {Text} from '#/components/Typography' 35 35 import type * as bsky from '#/types/bsky' ··· 423 423 function SeeMoreSuggestedProfilesCard() { 424 424 const t = useTheme() 425 425 const {_} = useLingui() 426 - const navigation = useNavigation<NavigationProp>() 427 426 428 427 return ( 429 - <Button 428 + <Link 429 + to="/search" 430 430 color="primary" 431 431 label={_(msg`Browse more accounts on the Explore page`)} 432 432 style={[ 433 433 a.flex_col, 434 434 a.align_center, 435 - a.gap_xs, 435 + a.justify_center, 436 + a.gap_sm, 436 437 a.p_md, 437 438 a.rounded_lg, 438 439 t.atoms.shadow_sm, 439 440 {width: FINAL_CARD_WIDTH}, 440 - ]} 441 - onPress={() => navigation.navigate('SearchTab')}> 441 + ]}> 442 442 <ButtonIcon icon={ArrowRight} size="lg" /> 443 443 <ButtonText 444 444 style={[a.text_md, a.font_medium, a.leading_snug, a.text_center]}> 445 445 <Trans>See more</Trans> 446 446 </ButtonText> 447 - </Button> 447 + </Link> 448 448 ) 449 449 } 450 450