Bluesky app fork with some witchin' additions 💫

fix: don't open user profile when clicking edit button in user list (#8831)

authored by

Elijah Seed-Arita and committed by
GitHub
485f7ee9 bfcdb835

+10 -3
+10 -3
src/view/com/lists/ListMembers.tsx
··· 1 1 import React, {useCallback} from 'react' 2 - import {Dimensions, type StyleProp, View, type ViewStyle} from 'react-native' 2 + import { 3 + Dimensions, 4 + type GestureResponderEvent, 5 + type StyleProp, 6 + View, 7 + type ViewStyle, 8 + } from 'react-native' 3 9 import {type AppBskyGraphDefs} from '@atproto/api' 4 10 import {msg, Trans} from '@lingui/macro' 5 11 import {useLingui} from '@lingui/react' ··· 119 125 }, [fetchNextPage]) 120 126 121 127 const onPressEditMembership = React.useCallback( 122 - (profile: bsky.profile.AnyProfileView) => { 128 + (e: GestureResponderEvent, profile: bsky.profile.AnyProfileView) => { 129 + e.preventDefault() 123 130 openModal({ 124 131 name: 'user-add-remove-lists', 125 132 subject: profile.did, ··· 178 185 <Button 179 186 testID={`user-${profile.handle}-editBtn`} 180 187 label={_(msg({message: 'Edit', context: 'action'}))} 181 - onPress={() => onPressEditMembership(profile)} 188 + onPress={e => onPressEditMembership(e, profile)} 182 189 size="small" 183 190 variant="solid" 184 191 color="secondary">