Add hitslop to switch account ... menu (#11262)
This commit is contained in:
@@ -134,3 +134,6 @@ bskyweb/static/media/*.svg
|
||||
# superpowers plugin plans/specs — local-only workspace
|
||||
docs/superpowers/
|
||||
.claude/worktrees
|
||||
|
||||
# pnpm
|
||||
.pnpm-store/
|
||||
|
||||
@@ -6,7 +6,7 @@ import {Trans, useLingui} from '@lingui/react/macro'
|
||||
import {useNavigation} from '@react-navigation/native'
|
||||
import {type NativeStackScreenProps} from '@react-navigation/native-stack'
|
||||
|
||||
import {HELP_DESK_URL} from '#/lib/constants'
|
||||
import {HELP_DESK_URL, HITSLOP_10} from '#/lib/constants'
|
||||
import {useAccountSwitcher} from '#/lib/hooks/useAccountSwitcher'
|
||||
import {useApplyPullRequestOTAUpdate} from '#/lib/hooks/useOTAUpdates'
|
||||
import {
|
||||
@@ -647,6 +647,7 @@ function AccountRow({
|
||||
{({props, state}) => (
|
||||
<Pressable
|
||||
{...props}
|
||||
hitSlop={HITSLOP_10}
|
||||
style={[
|
||||
a.absolute,
|
||||
{top: 10, right: tokens.space.lg},
|
||||
|
||||
Reference in New Issue
Block a user