@@ -11,6 +11,8 @@ import ScreenLayout from '../../../../Aggregator/components/ScreenLayout';
11
11
import { getDepositNavbarOptions } from '../../../../../Navbar' ;
12
12
import { useStyles } from '../../../../../../../component-library/hooks' ;
13
13
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' ;
14
16
15
17
import Button , {
16
18
ButtonSize ,
@@ -22,27 +24,43 @@ import Icon, {
22
24
IconSize ,
23
25
} from '../../../../../../../component-library/components/Icons/Icon' ;
24
26
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
-
40
27
const GetStarted : React . FC = ( ) => {
41
28
const navigation = useNavigation ( ) ;
42
29
43
30
const { styles, theme } = useStyles ( styleSheet , { } ) ;
44
31
45
32
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
+ ] ;
46
64
47
65
useEffect ( ( ) => {
48
66
navigation . setOptions (
@@ -70,15 +88,19 @@ const GetStarted: React.FC = () => {
70
88
< ScreenLayout . Content >
71
89
< View style = { styles . getStartedImageWrapper } >
72
90
< Image
73
- source = { getStartedIcon }
91
+ source = {
92
+ metamaskUsdEnabled ? getStartedIconMUSD : getStartedIcon
93
+ }
74
94
style = { styles . getStartedImage }
75
95
resizeMode = "contain"
76
96
/>
77
97
</ View >
78
98
</ ScreenLayout . Content >
79
99
< ScreenLayout . Content >
80
100
< 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' ) }
82
104
</ Text >
83
105
{ bulletPoints . map ( ( bulletPoint , index ) => (
84
106
< View key = { index } style = { styles . bulletPointContainer } >
0 commit comments