Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Disable newskie dialog tap in hover card web (#4562)

authored by

Eric Bailey and committed by
GitHub
502bcad7 d6ce16d1

+8 -3
+3
src/components/NewskieDialog.tsx
··· 18 18 19 19 export function NewskieDialog({ 20 20 profile, 21 + disabled, 21 22 }: { 22 23 profile: AppBskyActorDefs.ProfileViewDetailed 24 + disabled?: boolean 23 25 }) { 24 26 const {_} = useLingui() 25 27 const moderationOpts = useModerationOpts() ··· 43 45 return ( 44 46 <View style={[a.pr_2xs]}> 45 47 <Button 48 + disabled={disabled} 46 49 label={_( 47 50 msg`This user is new here. Press for more info about when they joined.`, 48 51 )}
+1 -1
src/components/ProfileHoverCard/index.web.tsx
··· 469 469 )} 470 470 </Text> 471 471 472 - <ProfileHeaderHandle profile={profileShadow} /> 472 + <ProfileHeaderHandle profile={profileShadow} disableTaps /> 473 473 </View> 474 474 </Link> 475 475
+4 -2
src/screens/Profile/Header/Handle.tsx
··· 12 12 13 13 export function ProfileHeaderHandle({ 14 14 profile, 15 + disableTaps, 15 16 }: { 16 17 profile: Shadow<AppBskyActorDefs.ProfileViewDetailed> 18 + disableTaps?: boolean 17 19 }) { 18 20 const t = useTheme() 19 21 const invalidHandle = isInvalidHandle(profile.handle) ··· 21 23 return ( 22 24 <View 23 25 style={[a.flex_row, a.gap_xs, a.align_center]} 24 - pointerEvents={isAndroid ? 'box-only' : 'auto'}> 25 - <NewskieDialog profile={profile} /> 26 + pointerEvents={disableTaps ? 'none' : isAndroid ? 'box-only' : 'auto'}> 27 + <NewskieDialog profile={profile} disabled={disableTaps} /> 26 28 {profile.viewer?.followedBy && !blockHide ? ( 27 29 <View style={[t.atoms.bg_contrast_25, a.rounded_xs, a.px_sm, a.py_xs]}> 28 30 <Text style={[t.atoms.text, a.text_sm]}>