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