Skip to content

Commit 1e1b046

Browse files
committed
fix: musd get started page
1 parent e897616 commit 1e1b046

File tree

3 files changed

+47
-18
lines changed

3 files changed

+47
-18
lines changed

app/components/UI/Ramp/Deposit/Views/Root/GetStarted/GetStarted.tsx

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import ScreenLayout from '../../../../Aggregator/components/ScreenLayout';
1111
import { getDepositNavbarOptions } from '../../../../../Navbar';
1212
import { useStyles } from '../../../../../../../component-library/hooks';
1313
import getStartedIcon from '../../../assets/deposit-get-started-illustration.png';
14+
import getStartedIconMUSD from '../../../assets/deposit-get-started-illustration-musd.png';
15+
import useDepositFeatureFlags from '../../../hooks/useDepositFeatureFlags';
1416

1517
import Button, {
1618
ButtonSize,
@@ -22,27 +24,43 @@ import Icon, {
2224
IconSize,
2325
} from '../../../../../../../component-library/components/Icons/Icon';
2426

25-
const bulletPoints = [
26-
{
27-
title: strings('deposit.get_started.bullet_1_title'),
28-
description: strings('deposit.get_started.bullet_1_description'),
29-
},
30-
{
31-
title: strings('deposit.get_started.bullet_2_title'),
32-
description: strings('deposit.get_started.bullet_2_description'),
33-
},
34-
{
35-
title: strings('deposit.get_started.bullet_3_title'),
36-
description: strings('deposit.get_started.bullet_3_description'),
37-
},
38-
];
39-
4027
const GetStarted: React.FC = () => {
4128
const navigation = useNavigation();
4229

4330
const { styles, theme } = useStyles(styleSheet, {});
4431

4532
const { getStarted, setGetStarted } = useDepositSDK();
33+
const { metamaskUsdEnabled } = useDepositFeatureFlags();
34+
35+
const bulletPoints = metamaskUsdEnabled
36+
? [
37+
{
38+
title: strings('deposit.get_started.bullet_1_title_musd'),
39+
description: strings('deposit.get_started.bullet_1_description_musd'),
40+
},
41+
{
42+
title: strings('deposit.get_started.bullet_2_title_musd'),
43+
description: strings('deposit.get_started.bullet_2_description_musd'),
44+
},
45+
{
46+
title: strings('deposit.get_started.bullet_3_title_musd'),
47+
description: strings('deposit.get_started.bullet_3_description_musd'),
48+
},
49+
]
50+
: [
51+
{
52+
title: strings('deposit.get_started.bullet_1_title'),
53+
description: strings('deposit.get_started.bullet_1_description'),
54+
},
55+
{
56+
title: strings('deposit.get_started.bullet_2_title'),
57+
description: strings('deposit.get_started.bullet_2_description'),
58+
},
59+
{
60+
title: strings('deposit.get_started.bullet_3_title'),
61+
description: strings('deposit.get_started.bullet_3_description'),
62+
},
63+
];
4664

4765
useEffect(() => {
4866
navigation.setOptions(
@@ -70,15 +88,19 @@ const GetStarted: React.FC = () => {
7088
<ScreenLayout.Content>
7189
<View style={styles.getStartedImageWrapper}>
7290
<Image
73-
source={getStartedIcon}
91+
source={
92+
metamaskUsdEnabled ? getStartedIconMUSD : getStartedIcon
93+
}
7494
style={styles.getStartedImage}
7595
resizeMode="contain"
7696
/>
7797
</View>
7898
</ScreenLayout.Content>
7999
<ScreenLayout.Content>
80100
<Text variant={TextVariant.HeadingLG} style={styles.title}>
81-
{strings('deposit.get_started.title')}
101+
{metamaskUsdEnabled
102+
? strings('deposit.get_started.title_musd')
103+
: strings('deposit.get_started.title')}
82104
</Text>
83105
{bulletPoints.map((bulletPoint, index) => (
84106
<View key={index} style={styles.bulletPointContainer}>
81.3 KB
Loading

locales/languages/en.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,14 @@
613613
"bullet_2_description": "USDC is designed to stay stable, making it easier to plan, save, and spend.",
614614
"bullet_3_title": "Faster than banks",
615615
"bullet_3_description": "Send and receive in minutes, no waiting for bank hours or international delays.",
616-
"button": "Get started"
616+
"button": "Get started",
617+
"title_musd": "Starting is easy with mUSD",
618+
"bullet_1_title_musd": "Stable cryptocurrency",
619+
"bullet_1_description_musd": "mUSD is a digital dollar that is pegged 1 to 1 with the US dollar.",
620+
"bullet_2_title_musd": "Low volatility",
621+
"bullet_2_description_musd": "mUSD is designed to stay stable, making it easier to plan, save, and spend.",
622+
"bullet_3_title_musd": "Faster than banks",
623+
"bullet_3_description_musd": "Send and receive in minutes, no waiting for bank hours or international delays."
617624
},
618625
"enter_email": {
619626
"navbar_title": "Verify your identity",

0 commit comments

Comments
 (0)