@@ -446,9 +446,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
446446 checked = { this . state . passPhraseKeySelected === CREATE_STORAGE_OPTION_KEY }
447447 >
448448 < div className = "mx_CreateSecretStorageDialog_optionTitle" >
449- < img className = "mx_CreateSecretStorageDialog_optionIcon"
450- src = { require ( "../../../../../res/img/feather-customised/secure-backup.svg" ) }
451- />
449+ < span className = "mx_CreateSecretStorageDialog_optionIcon mx_CreateSecretStorageDialog_optionIcon_secureBackup" > </ span >
452450 { _t ( "Generate a Security Key" ) }
453451 </ div >
454452 < div > { _t ( "We’ll generate a Security Key for you to store somewhere safe, like a password manager or a safe." ) } </ div >
@@ -460,9 +458,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
460458 checked = { this . state . passPhraseKeySelected === CREATE_STORAGE_OPTION_PASSPHRASE }
461459 >
462460 < div className = "mx_CreateSecretStorageDialog_optionTitle" >
463- < img className = "mx_CreateSecretStorageDialog_optionIcon"
464- src = { require ( "../../../../../res/img/feather-customised/secure-phrase.svg" ) }
465- />
461+ < span className = "mx_CreateSecretStorageDialog_optionIcon mx_CreateSecretStorageDialog_optionIcon_securePhrase" > </ span >
466462 { _t ( "Enter a Security Phrase" ) }
467463 </ div >
468464 < div > { _t ( "Use a secret phrase only you know, and optionally save a Security Key to use for backup." ) } </ div >
@@ -781,28 +777,25 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
781777 }
782778 }
783779
784- let headerImage = null ;
780+ let titleClass = null ;
785781 switch ( this . state . phase ) {
786782 case PHASE_PASSPHRASE :
787783 case PHASE_PASSPHRASE_CONFIRM :
788- headerImage = require ( "../../../../../res/img/feather-customised/secure-phrase.svg" ) ;
784+ titleClass = [ 'mx_CreateSecretStorageDialog_titleWithIcon' , 'mx_CreateSecretStorageDialog_securePhraseTitle' ] ;
789785 break ;
790786 case PHASE_SHOWKEY :
791- headerImage = require ( "../../../../../res/img/feather-customised/secure-backup.svg" ) ;
787+ titleClass = [ 'mx_CreateSecretStorageDialog_titleWithIcon' , 'mx_CreateSecretStorageDialog_secureBackupTitle' ] ;
788+ break ;
789+ case PHASE_CHOOSE_KEY_PASSPHRASE :
790+ titleClass = 'mx_CreateSecretStorageDialog_centeredTitle' ;
792791 break ;
793- }
794-
795- let titleClass = null ;
796- if ( this . state . phase === PHASE_CHOOSE_KEY_PASSPHRASE ) {
797- titleClass = 'mx_CreateSecretStorageDialog_centeredTitle' ;
798792 }
799793
800794 return (
801795 < BaseDialog className = 'mx_CreateSecretStorageDialog'
802796 onFinished = { this . props . onFinished }
803797 title = { this . _titleForPhase ( this . state . phase ) }
804798 titleClass = { titleClass }
805- headerImage = { headerImage }
806799 hasCancel = { this . props . hasCancel && [ PHASE_PASSPHRASE ] . includes ( this . state . phase ) }
807800 fixedWidth = { false }
808801 >
0 commit comments