Skip to content

Commit

Permalink
Merge pull request #20045 from robertKozik/20021-migrate-AddPayPalMePage
Browse files Browse the repository at this point in the history
20021 — migrate AddPayPalMePage
  • Loading branch information
roryabraham authored Jun 9, 2023
2 parents 33fda84 + cf770db commit 9f1c0e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const GenericPressable = forwardRef((props, ref) => {

return (
<Pressable
hitSlop={shouldUseAutoHitSlop && hitSlop}
hitSlop={shouldUseAutoHitSlop ? hitSlop : undefined}
onLayout={onLayout}
ref={ref}
onPress={!isDisabled ? onPressHandler : undefined}
Expand Down
12 changes: 7 additions & 5 deletions src/pages/settings/Payments/AddPayPalMePage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, {useRef, useState, useCallback} from 'react';
// eslint-disable-next-line no-restricted-imports
import {View, TouchableWithoutFeedback, Linking} from 'react-native';
import {View, Linking} from 'react-native';
import _ from 'underscore';
import CONST from '../../../CONST';
import ROUTES from '../../../ROUTES';
Expand All @@ -20,6 +19,7 @@ import * as User from '../../../libs/actions/User';
import Icon from '../../../components/Icon';
import * as Expensicons from '../../../components/Icon/Expensicons';
import variables from '../../../styles/variables';
import PressableWithoutFeedback from '../../../components/Pressable/PressableWithoutFeedback';

const AddPayPalMePage = (props) => {
const [payPalMeUsername, setPayPalMeUsername] = useState('');
Expand Down Expand Up @@ -69,8 +69,10 @@ const AddPayPalMePage = (props) => {
/>
<View style={[styles.mt3, styles.flexRow, styles.justifyContentBetween, styles.alignSelfStart]}>
<Text style={[styles.textMicro, styles.flexRow]}>{props.translate('addPayPalMePage.checkListOf')}</Text>
<TouchableWithoutFeedback
// eslint-disable-next-line max-len
<PressableWithoutFeedback
shouldUseAutoHitSlop={false}
accessibilityRole="link"
accessibilityLabel={props.translate('addPayPalMePage.supportedCurrencies')}
onPress={() => Linking.openURL('https://developer.paypal.com/docs/reports/reference/paypal-supported-currencies')}
>
<View style={[styles.flexRow, styles.cursorPointer]}>
Expand All @@ -89,7 +91,7 @@ const AddPayPalMePage = (props) => {
/>
</View>
</View>
</TouchableWithoutFeedback>
</PressableWithoutFeedback>
</View>
</View>
</View>
Expand Down

0 comments on commit 9f1c0e0

Please sign in to comment.