Skip to content

Commit 2f153cd

Browse files
committed
chore(mobile): update mobile web to redirect iOS users to App Store
1 parent 6dfb053 commit 2f153cd

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

apps/mobile/v1/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/common/MobileAppBanner/index.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useMobilePlatform } from '@/hooks/useIsMobile';
55

66
const ANDROID_STORE_URL =
77
'https://play.google.com/store/apps/details?id=com.typelets.notes&pcampaignid=web_share';
8+
const IOS_STORE_URL = 'https://apps.apple.com/us/app/typelets/id6753926295';
89
const BANNER_DISMISSED_KEY = 'typelets_mobile_banner_dismissed';
910

1011
export function MobileAppBanner() {
@@ -27,8 +28,9 @@ export function MobileAppBanner() {
2728
const handleDownload = () => {
2829
if (platform === 'android') {
2930
window.open(ANDROID_STORE_URL, '_blank');
31+
} else if (platform === 'ios') {
32+
window.open(IOS_STORE_URL, '_blank');
3033
}
31-
// iOS will show "coming soon" message
3234
};
3335

3436
if (isDismissed || !platform) {
@@ -45,24 +47,20 @@ export function MobileAppBanner() {
4547
<p className="text-xs opacity-90">
4648
{platform === 'android'
4749
? 'Better experience on Android'
48-
: 'iOS app coming soon'}
50+
: 'Better experience on iOS'}
4951
</p>
5052
</div>
5153
</div>
5254

5355
<div className="flex items-center gap-2">
54-
{platform === 'android' ? (
55-
<Button
56-
size="sm"
57-
variant="secondary"
58-
onClick={handleDownload}
59-
className="h-8 text-xs whitespace-nowrap"
60-
>
61-
Download
62-
</Button>
63-
) : (
64-
<span className="text-xs font-medium opacity-90">Coming Soon</span>
65-
)}
56+
<Button
57+
size="sm"
58+
variant="secondary"
59+
onClick={handleDownload}
60+
className="h-8 text-xs whitespace-nowrap"
61+
>
62+
Download
63+
</Button>
6664
<Button
6765
size="sm"
6866
variant="ghost"

src/components/common/MobileAppDownload/index.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useState } from 'react';
44

55
const ANDROID_STORE_URL =
66
'https://play.google.com/store/apps/details?id=com.typelets.notes&pcampaignid=web_share';
7+
const IOS_STORE_URL = 'https://apps.apple.com/us/app/typelets/id6753926295';
78

89
export function MobileAppDownload() {
910
const platform = useMobilePlatform();
@@ -72,11 +73,13 @@ export function MobileAppDownload() {
7273
/>
7374
</a>
7475
) : platform === 'ios' ? (
75-
<div className="bg-muted rounded-lg p-4">
76-
<p className="text-foreground font-semibold">
77-
iOS App Coming Soon
78-
</p>
79-
</div>
76+
<a href={IOS_STORE_URL} className="inline-block">
77+
<img
78+
src="https://tools.applemediaservices.com/api/badges/download-on-the-app-store/black/en-us?size=250x83&releaseDate=1280635200"
79+
alt="Download on the App Store"
80+
className="h-20 w-auto"
81+
/>
82+
</a>
8083
) : (
8184
<a href={ANDROID_STORE_URL} className="inline-block">
8285
<img

0 commit comments

Comments
 (0)