File tree 1 file changed +2
-3
lines changed
src/pages/EnablePayments/AddBankAccount
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import useLocalize from '@hooks/useLocalize';
12
12
import useThemeStyles from '@hooks/useThemeStyles' ;
13
13
import getPlaidDesktopMessage from '@libs/getPlaidDesktopMessage' ;
14
14
import * as BankAccounts from '@userActions/BankAccounts' ;
15
- import CONFIG from '@src/CONFIG ' ;
15
+ import * as Link from '@userActions/Link ' ;
16
16
import ONYXKEYS from '@src/ONYXKEYS' ;
17
17
import ROUTES from '@src/ROUTES' ;
18
18
import type { User } from '@src/types/onyx' ;
@@ -28,7 +28,6 @@ type SetupMethodOnyxProps = {
28
28
type SetupMethodProps = SetupMethodOnyxProps ;
29
29
30
30
const plaidDesktopMessage = getPlaidDesktopMessage ( ) ;
31
- const enablePayments = `${ CONFIG . EXPENSIFY . NEW_EXPENSIFY_URL } ${ ROUTES . SETTINGS_ENABLE_PAYMENTS } ` ;
32
31
33
32
function SetupMethod ( { isPlaidDisabled, user} : SetupMethodProps ) {
34
33
const styles = useThemeStyles ( ) ;
@@ -46,7 +45,7 @@ function SetupMethod({isPlaidDisabled, user}: SetupMethodProps) {
46
45
</ View >
47
46
{ ! ! plaidDesktopMessage && (
48
47
< 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 >
50
49
</ View >
51
50
) }
52
51
< Button
You can’t perform that action at this time.
0 commit comments