rename for clairity
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import React from 'react'
|
||||
|
||||
import {Button, ButtonProps} from '#/components/Button'
|
||||
import {NormalizedPressable} from '#/components/NormalizedPressable'
|
||||
import {NormalizedRNGHPressable} from '#/components/NormalizedRNGHPressable'
|
||||
|
||||
export function BottomSheetButton({children, ...rest}: ButtonProps) {
|
||||
return (
|
||||
<Button {...rest} Component={NormalizedPressable}>
|
||||
<Button {...rest} Component={NormalizedRNGHPressable}>
|
||||
{children}
|
||||
</Button>
|
||||
)
|
||||
|
||||
@@ -6,7 +6,7 @@ import {flatten, useTheme} from '#/alf'
|
||||
import {useDialogContext} from '#/components/Dialog'
|
||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||
import {InlineLinkProps, useLink} from '#/components/Link'
|
||||
import {NormalizedPressable} from '#/components/NormalizedPressable'
|
||||
import {NormalizedRNGHPressable} from '#/components/NormalizedRNGHPressable'
|
||||
import {Text} from '#/components/Typography'
|
||||
import {router} from '#/routes'
|
||||
|
||||
@@ -64,7 +64,7 @@ export function BottomSheetInlineLinkText({
|
||||
|
||||
// eslint-disable-next-line bsky-internal/avoid-unwrapped-text
|
||||
return (
|
||||
<NormalizedPressable
|
||||
<NormalizedRNGHPressable
|
||||
onPress={onPress}
|
||||
onLongPress={onLongPress}
|
||||
onPressIn={onPressIn}
|
||||
@@ -87,6 +87,6 @@ export function BottomSheetInlineLinkText({
|
||||
]}>
|
||||
{children}
|
||||
</Text>
|
||||
</NormalizedPressable>
|
||||
</NormalizedRNGHPressable>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
ItemTextProps,
|
||||
TriggerProps,
|
||||
} from '#/components/Menu/types'
|
||||
import {NormalizedPressable} from '#/components/NormalizedPressable'
|
||||
import {NormalizedRNGHPressable} from '#/components/NormalizedRNGHPressable'
|
||||
import {Text} from '#/components/Typography'
|
||||
|
||||
export {
|
||||
@@ -117,7 +117,7 @@ export function Item({children, label, style, onPress, ...rest}: ItemProps) {
|
||||
} = useInteractionState()
|
||||
|
||||
return (
|
||||
<NormalizedPressable
|
||||
<NormalizedRNGHPressable
|
||||
{...rest}
|
||||
accessibilityHint=""
|
||||
accessibilityLabel={label}
|
||||
@@ -151,7 +151,7 @@ export function Item({children, label, style, onPress, ...rest}: ItemProps) {
|
||||
<ItemContext.Provider value={{disabled: Boolean(rest.disabled)}}>
|
||||
{children}
|
||||
</ItemContext.Provider>
|
||||
</NormalizedPressable>
|
||||
</NormalizedRNGHPressable>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ function pressableEventToMouseEvent(
|
||||
}
|
||||
}
|
||||
|
||||
export const NormalizedPressable = React.forwardRef<View, PressableProps>(
|
||||
export const NormalizedRNGHPressable = React.forwardRef<View, PressableProps>(
|
||||
function NormalizedPressable(
|
||||
{
|
||||
onPress,
|
||||
Reference in New Issue
Block a user