@@ -7,8 +7,14 @@ import BodyWrapper from './BodyWrapper';
77import NonCriptextPopupWrapper from './NonCriptextPopupWrapper' ;
88import { Status } from './Control' ;
99import { mySettings } from '../utils/electronInterface' ;
10+ import PopupHOC from './PopupHOC' ;
11+ import NotVerifiedRecoveryEmailPopup from '../components/NotVerifiedRecoveryEmailPopup' ;
12+ import RecoveryEmailSentPopup from '../components/RecoveryEmailSentPopup' ;
1013import './composer.scss' ;
1114
15+ const NotverifiedrecoveryemailPopup = PopupHOC ( NotVerifiedRecoveryEmailPopup ) ;
16+ const Recoveryemailsentpopup = PopupHOC ( RecoveryEmailSentPopup ) ;
17+
1218const Composer = props => (
1319 < div className = "wrapper" data-theme = { mySettings . theme || 'light' } >
1420 < FromWrapper
@@ -64,6 +70,21 @@ const Composer = props => (
6470 }
6571 />
6672 ) }
73+ { props . displayNotVerifiedRecoveryEmailPopup && (
74+ < NotverifiedrecoveryemailPopup
75+ popupPosition = { { left : '45%' , top : '45%' } }
76+ onConfirmVerifyRecoveryEmail = { props . handleConfirmVerifyRecoveryEmail }
77+ onTogglePopup = { props . onTogglePopupNotVerifiedRecoveryEmail }
78+ theme = { 'dark' }
79+ />
80+ ) }
81+ { props . displayRecoveryEmailSentPopup && (
82+ < Recoveryemailsentpopup
83+ popupPosition = { { left : '45%' , top : '45%' } }
84+ onTogglePopup = { props . onToggleRecoveryEmailSentPopup }
85+ theme = { 'dark' }
86+ />
87+ ) }
6788 { ( props . status === Status . WAITING ||
6889 props . status === Status . INITIALIZING ||
6990 props . isLinkingDevices ) && < div className = "composer-disable" /> }
@@ -79,13 +100,16 @@ Composer.propTypes = {
79100 ccEmails : PropTypes . array ,
80101 disableSendButtonOnInvalidEmail : PropTypes . func ,
81102 displayNonCriptextPopup : PropTypes . bool ,
103+ displayNotVerifiedRecoveryEmailPopup : PropTypes . bool ,
104+ displayRecoveryEmailSentPopup : PropTypes . bool ,
82105 files : PropTypes . array ,
83106 getAccount : PropTypes . func ,
84107 getBccEmails : PropTypes . func ,
85108 getCcEmails : PropTypes . func ,
86109 getHtmlBody : PropTypes . func ,
87110 getTextSubject : PropTypes . func ,
88111 getToEmails : PropTypes . func ,
112+ handleConfirmVerifyRecoveryEmail : PropTypes . func ,
89113 handlePauseUploadFile : PropTypes . func ,
90114 handleResumeUploadFile : PropTypes . func ,
91115 htmlBody : PropTypes . string ,
@@ -103,7 +127,9 @@ Composer.propTypes = {
103127 onClickSendMessage : PropTypes . func ,
104128 onDragOver : PropTypes . func ,
105129 onSetNonCriptextRecipientsPassword : PropTypes . func ,
130+ onTogglePopupNotVerifiedRecoveryEmail : PropTypes . func ,
106131 onToggleRecipient : PropTypes . func ,
132+ onToggleRecoveryEmailSentPopup : PropTypes . func ,
107133 status : PropTypes . number ,
108134 tagBlured : PropTypes . func ,
109135 tagChanged : PropTypes . func ,
0 commit comments