@@ -135,7 +135,6 @@ const EmailButton = styled(Button)`
135
135
const Subscribe = ( ) => {
136
136
const [ is_checked , setChecked ] = React . useState ( false )
137
137
const [ email , setEmail ] = React . useState ( '' )
138
- const [ emailForMessage , setEmailForMessage ] = React . useState ( '' )
139
138
const [ name , setName ] = React . useState ( '' )
140
139
const [ is_submitting , setIsSubmitting ] = React . useState ( false )
141
140
const [ submit_status , setSubmitStatus ] = React . useState ( '' )
@@ -238,7 +237,6 @@ const Subscribe = () => {
238
237
}
239
238
240
239
customerioData ( formattedEmail )
241
- setEmailForMessage ( email )
242
240
submit_status && setSubmitStatus ( 'success' )
243
241
clearName ( )
244
242
clearEmail ( )
@@ -346,18 +344,12 @@ const Subscribe = () => {
346
344
) }
347
345
{ submit_status === 'success' && (
348
346
< TextWrapper color = { '#01a79f' } font_size = { 15 } margin_top = { '10px' } >
349
- < Localize
350
- translate_text = "Thanks for subscribing. We've sent a confirmation email to your inbox"
351
- values = { { email : emailForMessage } }
352
- />
347
+ < Localize translate_text = "Thanks for subscribing. We've sent a confirmation email to your inbox" />
353
348
</ TextWrapper >
354
349
) }
355
350
{ submit_status === false && (
356
- < TextWrapper color = { 'red' } font_size = { 15 } margin_top = { '10px' } >
357
- < Localize
358
- translate_text = "Please disable Adblock for Deriv to subscribe successfully"
359
- values = { { email : emailForMessage } }
360
- />
351
+ < TextWrapper color = { '#ff444f' } font_size = { 15 } margin_top = { '10px' } >
352
+ < Localize translate_text = "Please disable Adblock for Deriv to subscribe successfully" />
361
353
</ TextWrapper >
362
354
) }
363
355
</ InputGroupForm >
0 commit comments