File tree Expand file tree Collapse file tree 4 files changed +47
-8
lines changed
eReputation/client/public Expand file tree Collapse file tree 4 files changed +47
-8
lines changed Original file line number Diff line number Diff line change @@ -166,12 +166,11 @@ export function LoginScreen() {
166166
167167 < div className = "bg-white/50 p-8 rounded-lg shadow-lg max-w-md w-full" >
168168 < div className = "text-center mb-8" >
169- < p className = "text-gray-600" >
170- { isMobileDevice ( )
171- ? "Login using your eID Wallet app"
172- : "Scan the QR code using your eID App to login"
173- }
174- </ p >
169+
170+ { isMobileDevice ( )
171+ ? < p className = "text-gray-600" > Login using your < a href = { getAppStoreLink ( ) } > < b > < u > eID Wallet App</ u > </ b > </ a > </ p >
172+ : < p className = "text-gray-600" > Scan the QR code using your < a href = { getAppStoreLink ( ) } > < b > < u > eID App</ u > </ b > </ a > to login</ p >
173+ }
175174 </ div >
176175
177176 < div className = "flex justify-center mb-6" >
Original file line number Diff line number Diff line change @@ -9,6 +9,16 @@ export function getDeepLinkUrl(w3dsUrl: string): string {
99}
1010
1111export function getAppStoreLink ( ) : string {
12- return "https://apps.apple.com/app/eid-wallet" ;
13- }
12+ const userAgent =
13+ navigator . userAgent || navigator . vendor || ( window as { opera ?: string } ) . opera || '' ;
14+ if ( / a n d r o i d / i. test ( userAgent ) ) {
15+ return 'https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet' ;
16+ }
17+
18+ if ( / i P a d | i P h o n e | i P o d / . test ( userAgent ) && ! ( 'MSStream' in window ) ) {
19+ return 'https://apps.apple.com/in/app/eid-for-w3ds/id6747748667' ;
20+ }
21+
22+ return 'https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet' ;
23+ }
1424
You can’t perform that action at this time.
0 commit comments