diff --git a/packages/connect-ui/src/components/modal/modal.tsx b/packages/connect-ui/src/components/modal/modal.tsx index 7b760fb5..7d99a4d9 100644 --- a/packages/connect-ui/src/components/modal/modal.tsx +++ b/packages/connect-ui/src/components/modal/modal.tsx @@ -53,14 +53,14 @@ export class Modal { return provider.iOSAppStoreUrl ?? provider.googlePlayStoreUrl; } - getInstallUrl(provider: WebBTCProvider, browser: string) { - if (browser === 'Chrome') { + getInstallUrl(provider: WebBTCProvider, browser: string, platform: string) { + if (platform === 'IOS') { + return provider.iOSAppStoreUrl ?? this.getBrowserUrl(provider) ?? provider.webUrl; + } else if (browser === 'Chrome') { return provider.chromeWebStoreUrl ?? this.getMobileUrl(provider) ?? provider.webUrl; } else if (browser === 'Firefox') { return provider.mozillaAddOnsUrl ?? this.getMobileUrl(provider) ?? provider.webUrl; - } else if (browser === 'IOS') { - return provider.iOSAppStoreUrl ?? this.getBrowserUrl(provider) ?? provider.webUrl; - } else if (browser === 'Android') { + } else if (platform === 'Android') { return provider.googlePlayStoreUrl ?? this.getBrowserUrl(provider) ?? provider.webUrl; } else { return this.getBrowserUrl(provider) ?? provider.webUrl ?? this.getMobileUrl(provider); @@ -197,10 +197,10 @@ export class Modal { )} - {this.getInstallUrl(provider, browser) && ( + {this.getInstallUrl(provider, browser, mobile) && ( diff --git a/packages/connect/src/providers.ts b/packages/connect/src/providers.ts index 79202d49..006e0adb 100644 --- a/packages/connect/src/providers.ts +++ b/packages/connect/src/providers.ts @@ -9,9 +9,7 @@ export const DEFAULT_PROVIDERS: WebBTCProvider[] = [ webUrl: 'https://leather.io', chromeWebStoreUrl: 'https://chrome.google.com/webstore/detail/hiro-wallet/ldinpeekobnhjjdofggfgjlcehhmanlj', - mozillaAddOnsUrl: 'https://addons.mozilla.org/en-US/firefox/addon/hiro-wallet', - googlePlayStoreUrl: 'https://play.google.com/store/apps/details?id=io.hiro.wallet', - iOSAppStoreUrl: 'https://apps.apple.com/app/hiro-wallet/id1492380872', + mozillaAddOnsUrl: 'https://leather.io/install-extension', }, { id: 'XverseProviders.StacksProvider', @@ -23,6 +21,7 @@ export const DEFAULT_PROVIDERS: WebBTCProvider[] = [ 'https://chrome.google.com/webstore/detail/xverse-wallet/idnnbdplmphpflfnlkomgpfbpcgelopg', googlePlayStoreUrl: 'https://play.google.com/store/apps/details?id=com.secretkeylabs.xverse', iOSAppStoreUrl: 'https://apps.apple.com/app/xverse-bitcoin-web3-wallet/id1552272513', + mozillaAddOnsUrl: 'https://www.xverse.app/download', }, { id: 'AsignaProvider',