Skip to content

Commit 2f19186

Browse files
authored
Merge branch 'main' into chore/predict-adds-no-search-visual-state
2 parents aa84026 + ecd5239 commit 2f19186

File tree

19 files changed

+218
-709
lines changed

19 files changed

+218
-709
lines changed

app/components/UI/Card/components/Onboarding/PhysicalAddress.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const AddressFields = ({
185185
numberOfLines={1}
186186
size={TextFieldSize.Lg}
187187
value={zipCode}
188-
keyboardType="number-pad"
188+
keyboardType="default"
189189
maxLength={255}
190190
accessibilityLabel={strings(
191191
'card.card_onboarding.physical_address.zip_code_label',

app/components/UI/Perps/components/PerpsMarketTabs/PerpsMarketTabs.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,10 @@ const PerpsMarketTabs: React.FC<PerpsMarketTabsProps> = ({
688688

689689
// Sync TabsList to active tab after remount (when key changes)
690690
useEffect(() => {
691-
if (tabsListRef.current && activeIndex >= 0) {
691+
// Enabled only in test mode
692+
// https://github.com/MetaMask/metamask-mobile/pull/22632
693+
const isInTestMode = process.env.JEST_WORKER_ID || process.env.E2E;
694+
if (tabsListRef.current && activeIndex >= 0 && isInTestMode) {
692695
tabsListRef.current.goToTabIndex(activeIndex);
693696
}
694697
}, [tabsKey, activeIndex, activeTabId]);

app/components/UI/Predict/components/PredictFeeSummary/PredictFeeSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const PredictFeeSummary: React.FC<PredictFeeSummaryProps> = ({
5555
<Box twClassName="pt-4 px-4 pb-6 flex-col gap-4">
5656
{/* Fees Row with Info Icon */}
5757
<Box twClassName="flex-row justify-between items-center">
58-
<Box twClassName="flex-row items-center gap-1">
58+
<Box twClassName="flex-row items-center">
5959
<Text color={TextColor.Alternative} variant={TextVariant.BodyMD}>
6060
{strings('predict.fee_summary.fees')}
6161
</Text>

app/components/UI/Predict/components/PredictGTMModal/PredictGTMModal.styles.ts

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const BASE_WIDTH = 375;
1010
const BASE_HEIGHT_IOS = 812; // iPhone X/11/12/13/14/15 Pro base
1111
const BASE_HEIGHT_ANDROID = 736; // Common Android base
1212

13+
const MIN_SCREEN_HEIGHT_FOR_SMALL_SCREEN_STYLES = 750;
14+
1315
// Calculate platform-aware scaling factors
1416
const isIOS = Platform.OS === 'ios';
1517
const baseHeight = isIOS ? BASE_HEIGHT_IOS : BASE_HEIGHT_ANDROID;
@@ -49,7 +51,11 @@ const createStyles = (theme: Theme) =>
4951
right: 0,
5052
bottom: 0,
5153
width: screenWidth * 1.07, // 7% wider for edge coverage
52-
height: screenHeight * 1.12, // 12% taller for edge coverage
54+
height:
55+
screenHeight *
56+
(screenHeight < MIN_SCREEN_HEIGHT_FOR_SMALL_SCREEN_STYLES
57+
? 1.12
58+
: 1.14), // 12% taller for edge coverage
5359
resizeMode: 'cover',
5460
},
5561
contentContainer: {
@@ -60,26 +66,38 @@ const createStyles = (theme: Theme) =>
6066
paddingHorizontal: scaleHorizontal(16),
6167
paddingVertical: scaleVertical(16),
6268
},
69+
poweredByImage: {
70+
width: scaleHorizontal(200),
71+
height: scaleVertical(24),
72+
marginBottom: 8,
73+
},
6374
spacer: {
6475
flex: 1,
6576
},
6677
title: {
6778
fontFamily: Platform.OS === 'ios' ? 'MM Poly' : 'MM Poly Regular',
6879
fontWeight: '400',
69-
fontSize: 50,
70-
lineHeight: 50, // 100% of font size
80+
// make it smaller on smaller screens
81+
fontSize:
82+
screenHeight < MIN_SCREEN_HEIGHT_FOR_SMALL_SCREEN_STYLES ? 40 : 50,
83+
lineHeight:
84+
screenHeight < MIN_SCREEN_HEIGHT_FOR_SMALL_SCREEN_STYLES ? 40 : 50, // 100% of font size
7185
letterSpacing: 0,
7286
textAlign: 'center',
73-
paddingTop: scaleVertical(12),
87+
paddingTop: scaleVertical(
88+
screenHeight < MIN_SCREEN_HEIGHT_FOR_SMALL_SCREEN_STYLES ? 8 : 12,
89+
),
7490
color: theme.colors.accent02.light,
7591
},
7692
titleDescription: {
93+
// make it smaller on smaller screens
94+
fontSize:
95+
screenHeight < MIN_SCREEN_HEIGHT_FOR_SMALL_SCREEN_STYLES ? 14 : 16,
7796
paddingTop: scaleVertical(10),
7897
paddingHorizontal: scaleHorizontal(8),
7998
textAlign: 'center',
8099
fontFamily: Platform.OS === 'ios' ? 'System' : 'Roboto', // Default system font
81100
fontWeight: '500',
82-
fontSize: 16, // BodyMd
83101
lineHeight: 24, // Line Height BodyMd
84102
letterSpacing: 0,
85103
color: theme.colors.accent02.light,

app/components/UI/Predict/components/PredictGTMModal/PredictGTMModal.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { useMetrics } from '../../../../../components/hooks/useMetrics';
1616
import Routes from '../../../../../constants/navigation/Routes';
1717
import { MetaMetricsEvents } from '../../../../../core/Analytics';
1818
import PredictMarketingImage from '../../../../../images/predict-marketing.png';
19+
import PoweredByPolymarketImage from '../../../../../images/powered-by-polymarket.png';
1920
import StorageWrapper from '../../../../../store/storage-wrapper';
2021
import { PREDICT_GTM_MODAL_SHOWN } from '../../../../../constants/storage';
2122
import { useTheme } from '../../../../../util/theme';
@@ -84,6 +85,11 @@ const PredictGTMModal = () => {
8485
<SafeAreaView style={styles.contentContainer}>
8586
{/* Header Section */}
8687
<View style={styles.headerContainer}>
88+
<Image
89+
source={PoweredByPolymarketImage}
90+
style={styles.poweredByImage}
91+
resizeMode="contain"
92+
/>
8793
<Text style={styles.title} variant={TextVariant.HeadingLG}>
8894
{titleText}
8995
</Text>

app/components/UI/Rewards/components/Tabs/OverviewTab/WaysToEarn/WaysToEarn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const waysToEarn: WayToEarn[] = [
9696
type: WayToEarnType.DEPOSIT_MUSD,
9797
title: strings('rewards.ways_to_earn.deposit_musd.title'),
9898
description: strings('rewards.ways_to_earn.deposit_musd.description'),
99-
icon: IconName.AttachMoney,
99+
icon: IconName.Coin,
100100
},
101101
];
102102

app/components/Views/MultichainAccounts/WalletDetails/BaseWalletDetails/components/AccountItem.tsx

Lines changed: 0 additions & 109 deletions
This file was deleted.

app/components/Views/MultichainAccounts/WalletDetails/BaseWalletDetails/components/WalletAddAccountActions.test.tsx

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)