11import { useIsFocused } from '@react-navigation/native' ;
22import { Str } from 'expensify-common' ;
3- import React , { useEffect , useRef , useState } from 'react' ;
3+ import React , { useEffect , useRef } from 'react' ;
44// eslint-disable-next-line no-restricted-imports
55import type { Text as RNText } from 'react-native' ;
66import { StyleSheet } from 'react-native' ;
@@ -9,7 +9,6 @@ import Text from '@components/Text';
99import Tooltip from '@components/Tooltip' ;
1010import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
1111import useStyleUtils from '@hooks/useStyleUtils' ;
12- import useTheme from '@hooks/useTheme' ;
1312import useThemeStyles from '@hooks/useThemeStyles' ;
1413import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
1514import { hideContextMenu , showContextMenu } from '@pages/home/report/ContextMenu/ReportActionContextMenu' ;
@@ -32,12 +31,10 @@ function BaseAnchorForCommentsOnly({
3231 wrapperStyle,
3332 ...rest
3433} : BaseAnchorForCommentsOnlyProps ) {
35- const theme = useTheme ( ) ;
3634 const styles = useThemeStyles ( ) ;
3735 const StyleUtils = useStyleUtils ( ) ;
3836 const linkRef = useRef < RNText > ( null ) ;
3937 const flattenStyle = StyleSheet . flatten ( style ) ;
40- const [ isHovered , setIsHovered ] = useState ( false ) ;
4138
4239 useEffect (
4340 ( ) => ( ) => {
@@ -55,7 +52,6 @@ function BaseAnchorForCommentsOnly({
5552 linkProps . href = href ;
5653 }
5754 const defaultTextStyle = canUseTouchScreen ( ) || shouldUseNarrowLayout ? { } : { ...styles . userSelectText , ...styles . cursorPointer } ;
58- const hoverStyle = isHovered ? StyleUtils . getColorStyle ( theme . linkHover ) : { } ;
5955 const isEmail = Str . isValidEmail ( href . replace ( / m a i l t o : / i, '' ) ) ;
6056 const linkHref = ! linkHasImage ? href : undefined ;
6157 const isFocused = useIsFocused ( ) ;
@@ -83,8 +79,6 @@ function BaseAnchorForCommentsOnly({
8379 } }
8480 onPressIn = { onPressIn }
8581 onPressOut = { onPressOut }
86- onHoverIn = { ( ) => setIsHovered ( true ) }
87- onHoverOut = { ( ) => setIsHovered ( false ) }
8882 role = { CONST . ROLE . LINK }
8983 accessibilityLabel = { href }
9084 wrapperStyle = { wrapperStyle }
@@ -95,7 +89,7 @@ function BaseAnchorForCommentsOnly({
9589 >
9690 < Text
9791 ref = { linkRef }
98- style = { StyleSheet . flatten ( [ style , defaultTextStyle , hoverStyle ] ) }
92+ style = { StyleSheet . flatten ( [ style , defaultTextStyle ] ) }
9993 role = { CONST . ROLE . LINK }
10094 hrefAttrs = { {
10195 rel,
0 commit comments