rename for clairity

This commit is contained in:
Hailey
2024-10-02 10:59:20 -07:00
parent 349b8b7045
commit 1ea82c38ea
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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>
)
+3 -3
View File
@@ -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>
)
}
+3 -3
View File
@@ -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,