Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 865b93c

Browse files
committed
add color fix
1 parent 1afe3d6 commit 865b93c

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/pages/blog/components/_subscribe.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ const EmailButton = styled(Button)`
135135
const Subscribe = () => {
136136
const [is_checked, setChecked] = React.useState(false)
137137
const [email, setEmail] = React.useState('')
138-
const [emailForMessage, setEmailForMessage] = React.useState('')
139138
const [name, setName] = React.useState('')
140139
const [is_submitting, setIsSubmitting] = React.useState(false)
141140
const [submit_status, setSubmitStatus] = React.useState('')
@@ -238,7 +237,6 @@ const Subscribe = () => {
238237
}
239238

240239
customerioData(formattedEmail)
241-
setEmailForMessage(email)
242240
submit_status && setSubmitStatus('success')
243241
clearName()
244242
clearEmail()
@@ -346,18 +344,12 @@ const Subscribe = () => {
346344
)}
347345
{submit_status === 'success' && (
348346
<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" />
353348
</TextWrapper>
354349
)}
355350
{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" />
361353
</TextWrapper>
362354
)}
363355
</InputGroupForm>

0 commit comments

Comments
 (0)