@@ -30,7 +30,6 @@ export interface MessageOption {
30
30
}
31
31
32
32
const linkClasses = 'text-bold link align-baseline' ;
33
- const { plansSelection, vpn, protonBusiness, drive, securityAndPrivacy } = MAIL_UPSELL_BANNERS_OPTIONS_URLS ;
34
33
35
34
const useMailUpsellOption = ( { setMailShortcutsModalOpen, setThemesModalOpen } : Props ) => {
36
35
const theme = useTheme ( ) ;
@@ -48,7 +47,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
48
47
text : c ( 'Info' ) . t `Upgrade to send email from @pm.me addresses.` ,
49
48
cta : (
50
49
< MailUpsellOptionCTA
51
- url = { plansSelection }
50
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
52
51
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . SEND_FROM_PM_ADDRESS }
53
52
/>
54
53
) ,
@@ -58,7 +57,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
58
57
text : c ( 'Info' ) . t `Upgrade to create more folders, filters, and addresses.` ,
59
58
cta : (
60
59
< MailUpsellOptionCTA
61
- url = { plansSelection }
60
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
62
61
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . GET_MORE_FOLDERS_FILTERS_AND_ADDRESSES }
63
62
/>
64
63
) ,
@@ -68,7 +67,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
68
67
text : c ( 'Info' ) . t `Upgrade to use auto-reply when you're away.` ,
69
68
cta : (
70
69
< MailUpsellOptionCTA
71
- url = { plansSelection }
70
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
72
71
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . AUTO_REPLY }
73
72
/>
74
73
) ,
@@ -78,7 +77,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
78
77
text : c ( 'Info' ) . t `Upgrade to use ${ MAIL_APP_NAME } with Apple Mail, Outlook or Thunderbird.` ,
79
78
cta : (
80
79
< MailUpsellOptionCTA
81
- url = { plansSelection }
80
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
82
81
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . THIRD_PARTY_CLIENTS }
83
82
/>
84
83
) ,
@@ -88,7 +87,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
88
87
text : c ( 'Info' ) . t `Upgrade to support privacy and get more features.` ,
89
88
cta : (
90
89
< MailUpsellOptionCTA
91
- url = { plansSelection }
90
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
92
91
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . GET_MORE_FEATURES }
93
92
/>
94
93
) ,
@@ -116,7 +115,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
116
115
text : c ( 'Info' ) . t `Upgrade to send emails from your custom email domain.` ,
117
116
cta : (
118
117
< MailUpsellOptionCTA
119
- url = { plansSelection }
118
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
120
119
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . HOST_EMAILS_FROM_YOUR_DOMAINS }
121
120
/>
122
121
) ,
@@ -126,7 +125,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
126
125
text : c ( 'Info' ) . t `${ MAIL_APP_NAME } can protect your business as well.` ,
127
126
cta : (
128
127
< MailUpsellOptionCTA
129
- url = { protonBusiness }
128
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
130
129
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . PROTECT_YOUR_BUSINESS }
131
130
/>
132
131
) ,
@@ -136,7 +135,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
136
135
text : c ( 'Info' ) . t `Upgrade to add more addresses to your account.` ,
137
136
cta : (
138
137
< MailUpsellOptionCTA
139
- url = { plansSelection }
138
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
140
139
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . ADD_MORE_ADDRESSES }
141
140
/>
142
141
) ,
@@ -146,7 +145,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
146
145
text : c ( 'Info' ) . t `Upgrade to send emails to contact groups easily.` ,
147
146
cta : (
148
147
< MailUpsellOptionCTA
149
- url = { plansSelection }
148
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
150
149
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . CONTACT_GROUPS }
151
150
/>
152
151
) ,
@@ -156,7 +155,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
156
155
text : c ( 'Info' ) . t `Upgrade to support a privacy-first internet.` ,
157
156
cta : (
158
157
< MailUpsellOptionCTA
159
- url = { plansSelection }
158
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
160
159
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . PRIVACY_FIRST_INTERNET }
161
160
/>
162
161
) ,
@@ -166,7 +165,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
166
165
text : c ( 'Info' ) . t `Upgrade to support our mission of privacy for all.` ,
167
166
cta : (
168
167
< MailUpsellOptionCTA
169
- url = { plansSelection }
168
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
170
169
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . PRIVACY_FOR_ALL }
171
170
/>
172
171
) ,
@@ -175,7 +174,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
175
174
id : 19 ,
176
175
text : c ( 'Info' ) . t `Secure your files with encrypted cloud storage for free, today.` ,
177
176
cta : (
178
- < Href href = { drive } className = { linkClasses } tabIndex = { 0 } >
177
+ < Href href = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . drive } className = { linkClasses } tabIndex = { 0 } >
179
178
{ callToActionTexts . learnMore }
180
179
</ Href >
181
180
) ,
@@ -184,7 +183,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
184
183
id : 20 ,
185
184
text : c ( 'Info' ) . t `You can use ${ VPN_APP_NAME } for free, today.` ,
186
185
cta : (
187
- < Href href = { vpn } className = { linkClasses } tabIndex = { 0 } >
186
+ < Href href = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . vpn } className = { linkClasses } tabIndex = { 0 } >
188
187
{ callToActionTexts . learnMore }
189
188
</ Href >
190
189
) ,
@@ -194,7 +193,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
194
193
text : c ( 'Info' ) . t `Upgrade to unlock premium features.` ,
195
194
cta : (
196
195
< MailUpsellOptionCTA
197
- url = { plansSelection }
196
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
198
197
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . PREMIUM_FEATURES }
199
198
/>
200
199
) ,
@@ -204,7 +203,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
204
203
text : c ( 'Info' ) . t `Upgrade to level up your privacy.` ,
205
204
cta : (
206
205
< MailUpsellOptionCTA
207
- url = { plansSelection }
206
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . plansSelection }
208
207
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . LVL_UP_PRIVACY }
209
208
/>
210
209
) ,
@@ -216,7 +215,7 @@ const useMailUpsellOption = ({ setMailShortcutsModalOpen, setThemesModalOpen }:
216
215
. t `Join ${ PROTON_SENTINEL_NAME } program for our highest level of account security and support.` ,
217
216
cta : (
218
217
< MailUpsellOptionCTA
219
- url = { securityAndPrivacy }
218
+ url = { MAIL_UPSELL_BANNERS_OPTIONS_URLS . securityAndPrivacy }
220
219
optionID = { MAIL_UPSELL_BANNER_LINK_ID_REF_PATH . PROTON_SENTINEL }
221
220
/>
222
221
) ,
0 commit comments