From 1280c663762c04b71d68c51ef89c54b87850ef88 Mon Sep 17 00:00:00 2001 From: Bekiboo Date: Mon, 19 Jan 2026 20:17:22 +0300 Subject: [PATCH] fix: add W3DS.svg for both eCurrency and eReputation & fix eid Wallet link for eCurrency --- platforms/eCurrency/client/public/W3DS.svg | 15 +++++++++++++++ .../client/src/components/auth/login-screen.tsx | 11 +++++------ .../client/src/lib/utils/mobile-detection.ts | 14 ++++++++++++-- platforms/eReputation/client/public/W3DS.svg | 15 +++++++++++++++ 4 files changed, 47 insertions(+), 8 deletions(-) create mode 100644 platforms/eCurrency/client/public/W3DS.svg create mode 100644 platforms/eReputation/client/public/W3DS.svg diff --git a/platforms/eCurrency/client/public/W3DS.svg b/platforms/eCurrency/client/public/W3DS.svg new file mode 100644 index 000000000..92e73a913 --- /dev/null +++ b/platforms/eCurrency/client/public/W3DS.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/platforms/eCurrency/client/src/components/auth/login-screen.tsx b/platforms/eCurrency/client/src/components/auth/login-screen.tsx index 0cd36f6ac..c542db382 100644 --- a/platforms/eCurrency/client/src/components/auth/login-screen.tsx +++ b/platforms/eCurrency/client/src/components/auth/login-screen.tsx @@ -166,12 +166,11 @@ export function LoginScreen() {
-

- {isMobileDevice() - ? "Login using your eID Wallet app" - : "Scan the QR code using your eID App to login" - } -

+ + {isMobileDevice() + ?

Login using your eID Wallet App

+ :

Scan the QR code using your eID App to login

+ }
diff --git a/platforms/eCurrency/client/src/lib/utils/mobile-detection.ts b/platforms/eCurrency/client/src/lib/utils/mobile-detection.ts index d47658c57..251c96548 100644 --- a/platforms/eCurrency/client/src/lib/utils/mobile-detection.ts +++ b/platforms/eCurrency/client/src/lib/utils/mobile-detection.ts @@ -9,6 +9,16 @@ export function getDeepLinkUrl(w3dsUrl: string): string { } export function getAppStoreLink(): string { - return "https://apps.apple.com/app/eid-wallet"; -} + const userAgent = + navigator.userAgent || navigator.vendor || (window as { opera?: string }).opera || ''; + if (/android/i.test(userAgent)) { + return 'https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet'; + } + + if (/iPad|iPhone|iPod/.test(userAgent) && !('MSStream' in window)) { + return 'https://apps.apple.com/in/app/eid-for-w3ds/id6747748667'; + } + + return 'https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet'; + } diff --git a/platforms/eReputation/client/public/W3DS.svg b/platforms/eReputation/client/public/W3DS.svg new file mode 100644 index 000000000..92e73a913 --- /dev/null +++ b/platforms/eReputation/client/public/W3DS.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +