Skip to content

Commit 6cc5989

Browse files
Merge pull request #5177 from topcoder-platform/issue-5107
Hide Challenge Email
2 parents c8c6634 + 185c319 commit 6cc5989

File tree

1 file changed

+46
-12
lines changed
  • src/shared/components/Settings/Account/MyAccount

1 file changed

+46
-12
lines changed

src/shared/components/Settings/Account/MyAccount/index.jsx

Lines changed: 46 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ export default class MyAccount extends ConsentComponent {
362362
newEmail,
363363
currentEmail,
364364
btnChangeEmailVisible,
365-
btnVerifiEmailVisible,
366-
btnVerifiAgainlVisible,
365+
// btnVerifiEmailVisible,
366+
// btnVerifiAgainlVisible,
367367
focus,
368368
hasLength,
369369
hasLetter,
@@ -377,11 +377,11 @@ export default class MyAccount extends ConsentComponent {
377377
isMobileView,
378378
showRePasswordTips,
379379
rePasswordValid,
380-
isValidEmail,
380+
// isValidEmail,
381381
isOpen,
382382
} = this.state;
383383

384-
const { updatingPassword, updatingProfile, isEmailConflict = false } = profileState;
384+
const { updatingPassword, /* updatingProfile, */ isEmailConflict = false } = profileState;
385385
const { incorrectPassword } = settingsPageState;
386386

387387
return (
@@ -481,16 +481,25 @@ export default class MyAccount extends ConsentComponent {
481481
</div>
482482
)
483483
}
484+
{ /* TEMPORARY DISABLE CHANGE E-MAIL - community-app#5107
484485
<div styleName="row">
485-
<div styleName={`button-change-email ${btnChangeEmailVisible ? 'active' : 'hide'}`}>
486+
<div
487+
styleName={
488+
`button-change-email ${btnChangeEmailVisible ? 'active' : 'hide'}`
489+
}
490+
>
486491
<PrimaryButton
487492
styleName="white-label"
488493
onClick={this.onChangeEmail}
489494
>
490495
Change Email
491496
</PrimaryButton>
492497
</div>
493-
<div styleName={`button-verification-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`}>
498+
<div
499+
styleName={
500+
`button-verification-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`
501+
}
502+
>
494503
<PrimaryButton
495504
styleName="white-label"
496505
disabled={!isValidEmail || updatingProfile}
@@ -499,7 +508,11 @@ export default class MyAccount extends ConsentComponent {
499508
Send Verification Email
500509
</PrimaryButton>
501510
</div>
502-
<div styleName={`button-verification-again ${btnVerifiAgainlVisible ? 'active' : 'hide'}`}>
511+
<div
512+
styleName={
513+
`button-verification-again ${btnVerifiAgainlVisible ? 'active' : 'hide'}`
514+
}
515+
>
503516
<PrimaryButton
504517
styleName="white-label"
505518
disabled={!isValidEmail || updatingProfile}
@@ -508,7 +521,11 @@ export default class MyAccount extends ConsentComponent {
508521
Send Verification Email Again
509522
</PrimaryButton>
510523
</div>
511-
<div styleName={`button-cancel-change-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`}>
524+
<div
525+
styleName={
526+
`button-cancel-change-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`
527+
}
528+
>
512529
<PrimaryButton
513530
styleName="white-label"
514531
onClick={this.onCancelVerificationEmail}
@@ -517,6 +534,7 @@ export default class MyAccount extends ConsentComponent {
517534
</PrimaryButton>
518535
</div>
519536
</div>
537+
*/}
520538
</form>
521539
) : (
522540
<form name="email-form-default" styleName="form-default" noValidate autoComplete="off">
@@ -582,16 +600,23 @@ export default class MyAccount extends ConsentComponent {
582600
</div>
583601
)
584602
}
603+
{/* TEMPORARY DISABLE CHANGE E-MAIL - community-app#5107
585604
<div styleName="row button-group">
586-
<div styleName={`button-change-email ${btnChangeEmailVisible ? 'active' : 'hide'}`}>
605+
<div
606+
styleName={`button-change-email ${btnChangeEmailVisible ? 'active' : 'hide'}`}
607+
>
587608
<PrimaryButton
588609
styleName="white-label"
589610
onClick={this.onChangeEmail}
590611
>
591612
Change Email
592613
</PrimaryButton>
593614
</div>
594-
<div styleName={`button-verification-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`}>
615+
<div
616+
styleName={
617+
`button-verification-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`
618+
}
619+
>
595620
<PrimaryButton
596621
styleName="white-label"
597622
disabled={!isValidEmail || updatingProfile}
@@ -600,7 +625,11 @@ export default class MyAccount extends ConsentComponent {
600625
Send Verification Email
601626
</PrimaryButton>
602627
</div>
603-
<div styleName={`button-verification-again ${btnVerifiAgainlVisible ? 'active' : 'hide'}`}>
628+
<div
629+
styleName={
630+
`button-verification-again ${btnVerifiAgainlVisible ? 'active' : 'hide'}`
631+
}
632+
>
604633
<PrimaryButton
605634
styleName="white-label"
606635
disabled={!isValidEmail || updatingProfile}
@@ -609,7 +638,11 @@ export default class MyAccount extends ConsentComponent {
609638
Send Verification Email Again
610639
</PrimaryButton>
611640
</div>
612-
<div styleName={`button-cancel-change-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`}>
641+
<div
642+
styleName={
643+
`button-cancel-change-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`
644+
}
645+
>
613646
<PrimaryButton
614647
styleName="white-label"
615648
onClick={this.onCancelVerificationEmail}
@@ -618,6 +651,7 @@ export default class MyAccount extends ConsentComponent {
618651
</PrimaryButton>
619652
</div>
620653
</div>
654+
*/}
621655
</form>
622656
)
623657
}

0 commit comments

Comments
 (0)