diff --git a/src/renderer/src/components/mobile/MobileHero.test.tsx b/src/renderer/src/components/mobile/MobileHero.test.tsx index 3a371b86483..cc14c8b4461 100644 --- a/src/renderer/src/components/mobile/MobileHero.test.tsx +++ b/src/renderer/src/components/mobile/MobileHero.test.tsx @@ -76,8 +76,7 @@ describe('HeroFlow height', () => { platform="ios" onPlatformChange={vi.fn()} installQrUrl={null} - iosChannel="preview" - onIosChannelChange={vi.fn()} + installCopy={{ ctaLabel: 'Open TestFlight', url: 'https://example.com' }} onOpenAndroidInstallGuide={vi.fn()} onOpenInstallUrl={vi.fn()} onCopyInstallUrl={vi.fn()} @@ -123,8 +122,7 @@ describe('HeroFlow height', () => { platform="ios" onPlatformChange={vi.fn()} installQrUrl={null} - iosChannel="preview" - onIosChannelChange={vi.fn()} + installCopy={{ ctaLabel: 'Open TestFlight', url: 'https://example.com' }} onOpenAndroidInstallGuide={vi.fn()} onOpenInstallUrl={vi.fn()} onCopyInstallUrl={vi.fn()} @@ -165,6 +163,7 @@ describe('HeroFlow height', () => { const onOpenAndroidInstallGuide = vi.fn() renderFlow(0, { platform: 'android', + installCopy: { ctaLabel: 'Download APK', url: 'https://example.com/app-release.apk' }, onOpenAndroidInstallGuide }) diff --git a/src/renderer/src/components/mobile/MobileHero.tsx b/src/renderer/src/components/mobile/MobileHero.tsx index 07febd3c3af..c659e009ce9 100644 --- a/src/renderer/src/components/mobile/MobileHero.tsx +++ b/src/renderer/src/components/mobile/MobileHero.tsx @@ -3,7 +3,7 @@ import { ArrowLeft, ArrowRight, Copy } from 'lucide-react' import { cn } from '../../lib/utils' import type { MobileNetworkInterface } from '../settings/mobile-network-interface-selection' import { AndroidLogo, IosBrandIcon } from './MobileBrandIcons' -import { getChannelTagline, type IosChannel } from './mobile-platform-copy' +import type { InstallCopy } from './mobile-platform-copy' import type { MobilePairingConnectionMode } from '../../../../shared/mobile-pairing-connection-mode' import type { MobileRelayMintFailure } from '../../../../shared/mobile-relay-mint-failure' import { MobileHeroPairingStep } from './MobileHeroPairingStep' @@ -20,8 +20,7 @@ type HeroFlowProps = { platform: Platform onPlatformChange: (next: Platform) => void installQrUrl: string | null - iosChannel: IosChannel - onIosChannelChange: (next: IosChannel) => void + installCopy: InstallCopy onOpenAndroidInstallGuide: () => void onOpenInstallUrl: () => void onCopyInstallUrl: () => void @@ -59,8 +58,7 @@ export function HeroFlow({ platform, onPlatformChange, installQrUrl, - iosChannel, - onIosChannelChange, + installCopy, onOpenAndroidInstallGuide, onOpenInstallUrl, onCopyInstallUrl, @@ -164,39 +162,9 @@ export function HeroFlow({ {translate('auto.components.mobile.MobileHero.ac1eb64952', 'Android')} - {platform === 'ios' ? ( -
- - - {getChannelTagline(iosChannel)} -
- ) : null}