Skip to content

Commit

Permalink
fix URL address popup won’t show when hovered on terms/privacy links …
Browse files Browse the repository at this point in the history
…on about page
  • Loading branch information
miroslav committed Nov 3, 2022
1 parent 7ffe2c0 commit 9cf1550
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/pages/settings/AboutPage/AboutPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Navigation from '../../../libs/Navigation/Navigation';
import ROUTES from '../../../ROUTES';
import styles from '../../../styles/styles';
import Text from '../../../components/Text';
import TextLink from '../../../components/TextLink';
import CONST from '../../../CONST';
import * as Expensicons from '../../../components/Icon/Expensicons';
import ScreenWrapper from '../../../components/ScreenWrapper';
Expand Down Expand Up @@ -116,29 +117,21 @@ const AboutPage = (props) => {
'initialSettingsPage.readTheTermsAndPrivacyPolicy.phrase1',
)}
{' '}
<Text
accessibilityRole="link"
style={[styles.textMicroSupporting, styles.link]}
onPress={() => Link.openExternalLink(CONST.TERMS_URL)}
>
<TextLink style={[styles.textMicroSupporting, styles.link]} href={CONST.TERMS_URL}>
{props.translate(
'initialSettingsPage.readTheTermsAndPrivacyPolicy.phrase2',
)}
</Text>
</TextLink>
{' '}
{props.translate(
'initialSettingsPage.readTheTermsAndPrivacyPolicy.phrase3',
)}
{' '}
<Text
accessibilityRole="link"
style={[styles.textMicroSupporting, styles.link]}
onPress={() => Link.openExternalLink(CONST.PRIVACY_URL)}
>
<TextLink style={[styles.textMicroSupporting, styles.link]} href={CONST.PRIVACY_URL}>
{props.translate(
'initialSettingsPage.readTheTermsAndPrivacyPolicy.phrase4',
)}
</Text>
</TextLink>
.
</Text>
</View>
Expand Down

0 comments on commit 9cf1550

Please sign in to comment.