Skip to content

Commit 3721596

Browse files
authored
Merge pull request #47492 from nyomanjyotisa/issue-47116
Open enable payments URL in external browser on desktop app
2 parents ad2ff21 + c8d61ca commit 3721596

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pages/EnablePayments/AddBankAccount/SetupMethod.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import useLocalize from '@hooks/useLocalize';
1212
import useThemeStyles from '@hooks/useThemeStyles';
1313
import getPlaidDesktopMessage from '@libs/getPlaidDesktopMessage';
1414
import * as BankAccounts from '@userActions/BankAccounts';
15-
import CONFIG from '@src/CONFIG';
15+
import * as Link from '@userActions/Link';
1616
import ONYXKEYS from '@src/ONYXKEYS';
1717
import ROUTES from '@src/ROUTES';
1818
import type {User} from '@src/types/onyx';
@@ -28,7 +28,6 @@ type SetupMethodOnyxProps = {
2828
type SetupMethodProps = SetupMethodOnyxProps;
2929

3030
const plaidDesktopMessage = getPlaidDesktopMessage();
31-
const enablePayments = `${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}${ROUTES.SETTINGS_ENABLE_PAYMENTS}`;
3231

3332
function SetupMethod({isPlaidDisabled, user}: SetupMethodProps) {
3433
const styles = useThemeStyles();
@@ -46,7 +45,7 @@ function SetupMethod({isPlaidDisabled, user}: SetupMethodProps) {
4645
</View>
4746
{!!plaidDesktopMessage && (
4847
<View style={[styles.mv3, styles.flexRow, styles.justifyContentBetween]}>
49-
<TextLink href={enablePayments}>{translate(plaidDesktopMessage)}</TextLink>
48+
<TextLink onPress={() => Link.openExternalLinkWithToken(ROUTES.SETTINGS_ENABLE_PAYMENTS)}>{translate(plaidDesktopMessage)}</TextLink>
5049
</View>
5150
)}
5251
<Button

0 commit comments

Comments
 (0)