@@ -362,8 +362,8 @@ export default class MyAccount extends ConsentComponent {
362
362
newEmail,
363
363
currentEmail,
364
364
btnChangeEmailVisible,
365
- btnVerifiEmailVisible,
366
- btnVerifiAgainlVisible,
365
+ // btnVerifiEmailVisible,
366
+ // btnVerifiAgainlVisible,
367
367
focus,
368
368
hasLength,
369
369
hasLetter,
@@ -377,11 +377,11 @@ export default class MyAccount extends ConsentComponent {
377
377
isMobileView,
378
378
showRePasswordTips,
379
379
rePasswordValid,
380
- isValidEmail,
380
+ // isValidEmail,
381
381
isOpen,
382
382
} = this . state ;
383
383
384
- const { updatingPassword, updatingProfile, isEmailConflict = false } = profileState ;
384
+ const { updatingPassword, /* updatingProfile, */ isEmailConflict = false } = profileState ;
385
385
const { incorrectPassword } = settingsPageState ;
386
386
387
387
return (
@@ -481,16 +481,25 @@ export default class MyAccount extends ConsentComponent {
481
481
</ div >
482
482
)
483
483
}
484
+ { /* TEMPORARY DISABLE CHANGE E-MAIL - community-app#5107
484
485
<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
+ >
486
491
<PrimaryButton
487
492
styleName="white-label"
488
493
onClick={this.onChangeEmail}
489
494
>
490
495
Change Email
491
496
</PrimaryButton>
492
497
</div>
493
- < div styleName = { `button-verification-email ${ btnVerifiEmailVisible ? 'active' : 'hide' } ` } >
498
+ <div
499
+ styleName={
500
+ `button-verification-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`
501
+ }
502
+ >
494
503
<PrimaryButton
495
504
styleName="white-label"
496
505
disabled={!isValidEmail || updatingProfile}
@@ -499,7 +508,11 @@ export default class MyAccount extends ConsentComponent {
499
508
Send Verification Email
500
509
</PrimaryButton>
501
510
</div>
502
- < div styleName = { `button-verification-again ${ btnVerifiAgainlVisible ? 'active' : 'hide' } ` } >
511
+ <div
512
+ styleName={
513
+ `button-verification-again ${btnVerifiAgainlVisible ? 'active' : 'hide'}`
514
+ }
515
+ >
503
516
<PrimaryButton
504
517
styleName="white-label"
505
518
disabled={!isValidEmail || updatingProfile}
@@ -508,7 +521,11 @@ export default class MyAccount extends ConsentComponent {
508
521
Send Verification Email Again
509
522
</PrimaryButton>
510
523
</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
+ >
512
529
<PrimaryButton
513
530
styleName="white-label"
514
531
onClick={this.onCancelVerificationEmail}
@@ -517,6 +534,7 @@ export default class MyAccount extends ConsentComponent {
517
534
</PrimaryButton>
518
535
</div>
519
536
</div>
537
+ */ }
520
538
</ form >
521
539
) : (
522
540
< form name = "email-form-default" styleName = "form-default" noValidate autoComplete = "off" >
@@ -582,16 +600,23 @@ export default class MyAccount extends ConsentComponent {
582
600
</ div >
583
601
)
584
602
}
603
+ { /* TEMPORARY DISABLE CHANGE E-MAIL - community-app#5107
585
604
<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
+ >
587
608
<PrimaryButton
588
609
styleName="white-label"
589
610
onClick={this.onChangeEmail}
590
611
>
591
612
Change Email
592
613
</PrimaryButton>
593
614
</div>
594
- < div styleName = { `button-verification-email ${ btnVerifiEmailVisible ? 'active' : 'hide' } ` } >
615
+ <div
616
+ styleName={
617
+ `button-verification-email ${btnVerifiEmailVisible ? 'active' : 'hide'}`
618
+ }
619
+ >
595
620
<PrimaryButton
596
621
styleName="white-label"
597
622
disabled={!isValidEmail || updatingProfile}
@@ -600,7 +625,11 @@ export default class MyAccount extends ConsentComponent {
600
625
Send Verification Email
601
626
</PrimaryButton>
602
627
</div>
603
- < div styleName = { `button-verification-again ${ btnVerifiAgainlVisible ? 'active' : 'hide' } ` } >
628
+ <div
629
+ styleName={
630
+ `button-verification-again ${btnVerifiAgainlVisible ? 'active' : 'hide'}`
631
+ }
632
+ >
604
633
<PrimaryButton
605
634
styleName="white-label"
606
635
disabled={!isValidEmail || updatingProfile}
@@ -609,7 +638,11 @@ export default class MyAccount extends ConsentComponent {
609
638
Send Verification Email Again
610
639
</PrimaryButton>
611
640
</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
+ >
613
646
<PrimaryButton
614
647
styleName="white-label"
615
648
onClick={this.onCancelVerificationEmail}
@@ -618,6 +651,7 @@ export default class MyAccount extends ConsentComponent {
618
651
</PrimaryButton>
619
652
</div>
620
653
</div>
654
+ */ }
621
655
</ form >
622
656
)
623
657
}
0 commit comments