diff options
Diffstat (limited to 'src/components/Link.tsx')
-rw-r--r-- | src/components/Link.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/Link.tsx b/src/components/Link.tsx index a5203b252..3cd593a10 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -237,7 +237,9 @@ export function Link({ } export type InlineLinkProps = React.PropsWithChildren< - BaseLinkProps & TextStyleProp & Pick<TextProps, 'selectable'> + BaseLinkProps & + TextStyleProp & + Pick<TextProps, 'selectable' | 'numberOfLines'> > & Pick<ButtonProps, 'label'> & { disableUnderline?: boolean @@ -273,7 +275,6 @@ export function InlineLinkText({ onIn: onHoverIn, onOut: onHoverOut, } = useInteractionState() - const {state: focused, onIn: onFocus, onOut: onBlur} = useInteractionState() const flattenedStyle = flatten(style) || {} return ( @@ -284,7 +285,7 @@ export function InlineLinkText({ {...rest} style={[ {color: t.palette.primary_500}, - (hovered || focused) && + hovered && !disableUnderline && { ...web({ outline: 0, @@ -298,8 +299,6 @@ export function InlineLinkText({ role="link" onPress={download ? undefined : onPress} onLongPress={onLongPress} - onFocus={onFocus} - onBlur={onBlur} onMouseEnter={onHoverIn} onMouseLeave={onHoverOut} accessibilityRole="link" |