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
|
# superpowers plugin plans/specs — local-only workspace
|
||||||
docs/superpowers/
|
docs/superpowers/
|
||||||
.claude/worktrees
|
.claude/worktrees
|
||||||
|
|
||||||
|
# pnpm
|
||||||
|
.pnpm-store/
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {Trans, useLingui} from '@lingui/react/macro'
|
|||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
import {type NativeStackScreenProps} from '@react-navigation/native-stack'
|
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 {useAccountSwitcher} from '#/lib/hooks/useAccountSwitcher'
|
||||||
import {useApplyPullRequestOTAUpdate} from '#/lib/hooks/useOTAUpdates'
|
import {useApplyPullRequestOTAUpdate} from '#/lib/hooks/useOTAUpdates'
|
||||||
import {
|
import {
|
||||||
@@ -647,6 +647,7 @@ function AccountRow({
|
|||||||
{({props, state}) => (
|
{({props, state}) => (
|
||||||
<Pressable
|
<Pressable
|
||||||
{...props}
|
{...props}
|
||||||
|
hitSlop={HITSLOP_10}
|
||||||
style={[
|
style={[
|
||||||
a.absolute,
|
a.absolute,
|
||||||
{top: 10, right: tokens.space.lg},
|
{top: 10, right: tokens.space.lg},
|
||||||
|
|||||||
Reference in New Issue
Block a user