Skip to content

Commit

Permalink
Merge pull request #35646 from DylanDylann/fix/35507-missing-tooltip-…
Browse files Browse the repository at this point in the history
…cancel
  • Loading branch information
blimpich authored Feb 2, 2024
2 parents e6ea03b + 017efa2 commit ce448bd
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions src/components/ReferralProgramCTA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Icon from './Icon';
import {Close} from './Icon/Expensicons';
import {PressableWithoutFeedback} from './Pressable';
import Text from './Text';
import Tooltip from './Tooltip';

type ReferralProgramCTAProps = {
referralContentType:
Expand Down Expand Up @@ -44,22 +45,24 @@ function ReferralProgramCTA({referralContentType, onCloseButtonPress = () => {}}
{translate(`referralProgram.${referralContentType}.buttonText2`)}
</Text>
</Text>
<PressableWithoutFeedback
onPress={onCloseButtonPress}
onMouseDown={(e) => {
e.preventDefault();
}}
style={[styles.touchableButtonImage]}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={translate('common.close')}
>
<Icon
src={Close}
height={20}
width={20}
fill={theme.icon}
/>
</PressableWithoutFeedback>
<Tooltip text={translate('common.close')}>
<PressableWithoutFeedback
onPress={onCloseButtonPress}
onMouseDown={(e) => {
e.preventDefault();
}}
style={[styles.touchableButtonImage]}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={translate('common.close')}
>
<Icon
src={Close}
height={20}
width={20}
fill={theme.icon}
/>
</PressableWithoutFeedback>
</Tooltip>
</PressableWithoutFeedback>
);
}
Expand Down

0 comments on commit ce448bd

Please sign in to comment.