Skip to content

Commit 36a4ca3

Browse files
authored
fix: add W3DS.svg for both eCurrency and eReputation & fix eid Wallet link for eCurrency (#690)
1 parent cefb6ed commit 36a4ca3

File tree

4 files changed

+47
-8
lines changed

4 files changed

+47
-8
lines changed
Lines changed: 15 additions & 0 deletions
Loading

platforms/eCurrency/client/src/components/auth/login-screen.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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">

platforms/eCurrency/client/src/lib/utils/mobile-detection.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ export function getDeepLinkUrl(w3dsUrl: string): string {
99
}
1010

1111
export 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 (/android/i.test(userAgent)) {
15+
return 'https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet';
16+
}
17+
18+
if (/iPad|iPhone|iPod/.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

Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)