@@ -25,7 +25,7 @@ import { balanceActions } from '../state/modules/balance'
25
25
import WalletConstants from '../constants/wallet'
26
26
import util , { useWindowDimensions , OSType , generateOtpSeed } from '../util'
27
27
import { handleAPIError , handleAddressError } from '../handler'
28
- import { Hint , Heading , InputBox , Warning , Text , Link , Paragraph } from '../components/Text'
28
+ import { Hint , Heading , InputBox , Warning , Text , Link , Paragraph , SiderLink } from '../components/Text'
29
29
import AddressInput from '../components/AddressInput'
30
30
import WalletCreateProgress from '../components/WalletCreateProgress'
31
31
import { TallRow } from '../components/Grid'
@@ -38,11 +38,15 @@ import { useTheme, getColorPalette } from '../theme'
38
38
import { RedoOutlined } from '@ant-design/icons'
39
39
import Slider from 'antd/es/slider'
40
40
41
- const getGoogleAuthenticatorAppLink = ( os ) => {
41
+ const getGoogleAuthenticatorUrl = ( os ) => {
42
42
let link = 'https://apps.apple.com/us/app/google-authenticator/id388497605'
43
43
if ( os === OSType . Android ) {
44
44
link = 'https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2'
45
45
}
46
+ return link
47
+ }
48
+ const getGoogleAuthenticatorAppLink = ( os ) => {
49
+ const link = getGoogleAuthenticatorUrl ( os )
46
50
return < Link href = { link } target = '_blank' rel = 'noreferrer' > authenticator</ Link >
47
51
}
48
52
@@ -534,13 +538,13 @@ const SetupOtpSection = ({ expertMode, otpReady, setupConfig, walletState, setWa
534
538
< Hint > { isMobile ? 'Tap' : 'Scan' } the QR code to setup OTP { getGoogleAuthenticatorAppLink ( os ) } for the wallet</ Hint >
535
539
< Hint > Optional: < Link href = '#' onClick = { toggleShowAccount } > sign-up</ Link > to enable backup, alerts, verification code autofill</ Hint >
536
540
{ showAccount && < SignupAccount seed = { seed } name = { name } address = { walletState . predictedAddress } effectiveTime = { effectiveTime } setAllowOTPAutoFill = { setAllowAutoFill } /> }
537
- { buildQRCodeComponent ( { seed, name : ONENames . nameWithTime ( name , effectiveTime ) , os, isMobile, qrCodeData : otpQrCodeData } ) }
541
+ { buildQRCodeComponent ( { seed, name : ONENames . nameWithTime ( name , effectiveTime ) , os, isMobile, qrCodeData : otpQrCodeData , qrCodeMode } ) }
538
542
</ > }
539
543
{ step === 2 &&
540
544
< >
541
545
< Heading > Create Your { config . appName } (second code)</ Heading >
542
546
< Hint align = 'center' > { isMobile ? 'Tap' : 'Scan' } to setup the < b > second</ b > code</ Hint >
543
- { buildQRCodeComponent ( { seed : seed2 , name : ONENames . nameWithTime ( getSecondCodeName ( name ) , effectiveTime ) , os, isMobile, qrCodeData : secondOtpQrCodeData } ) }
547
+ { buildQRCodeComponent ( { seed : seed2 , name : ONENames . nameWithTime ( getSecondCodeName ( name ) , effectiveTime ) , os, isMobile, qrCodeData : secondOtpQrCodeData , qrCodeMode } ) }
544
548
</ > }
545
549
</ Space >
546
550
{ step === 1 && (
@@ -603,6 +607,13 @@ const SetupOtpSection = ({ expertMode, otpReady, setupConfig, walletState, setWa
603
607
Use Google Auth QR { qrCodeMode === OTPUriMode . MIGRATION && < CheckOutlined /> }
604
608
</ Button >
605
609
</ Space > ) }
610
+ { isMobile && (
611
+ < Space style = { { marginTop : 32 } } direction = 'vertical' >
612
+ < Hint >
613
+ Or go to "Password Options" (after tapping the QR code) and switch verification code app to < SiderLink href = { getGoogleAuthenticatorUrl ( os ) } > Google Authenticator</ SiderLink > , or < SiderLink href = 'https://raivo-otp.com/' > Raivo</ SiderLink > , or < SiderLink href = 'https://getaegis.app/' > Aegis</ SiderLink >
614
+ </ Hint >
615
+ </ Space >
616
+ ) }
606
617
</ AnimatedSection >
607
618
)
608
619
}
0 commit comments