From 58df4127d3b0c3b08c776c15ae84ccb215d68247 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 28 Jan 2020 17:14:48 +0000 Subject: [PATCH] Update propTypes and remove todo --- src/components/views/right_panel/EncryptionPanel.js | 7 +++++-- src/components/views/right_panel/VerificationPanel.js | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/views/right_panel/EncryptionPanel.js b/src/components/views/right_panel/EncryptionPanel.js index 2c4a896624..d45280e29c 100644 --- a/src/components/views/right_panel/EncryptionPanel.js +++ b/src/components/views/right_panel/EncryptionPanel.js @@ -14,7 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ -import React, {useCallback, useEffect, useState} from 'react'; +import React, {useCallback, useEffect, useState} from "react"; +import PropTypes from "prop-types"; import EncryptionInfo from "./EncryptionInfo"; import VerificationPanel from "./VerificationPanel"; @@ -85,7 +86,9 @@ const EncryptionPanel = ({verificationRequest, member, onClose}) => { } }; EncryptionPanel.propTypes = { - + member: PropTypes.object.isRequired, + onClose: PropTypes.func.isRequired, + verificationRequest: PropTypes.object, }; export default EncryptionPanel; diff --git a/src/components/views/right_panel/VerificationPanel.js b/src/components/views/right_panel/VerificationPanel.js index 6a5516927a..3740c6e49d 100644 --- a/src/components/views/right_panel/VerificationPanel.js +++ b/src/components/views/right_panel/VerificationPanel.js @@ -39,7 +39,6 @@ export default class VerificationPanel extends React.PureComponent { renderQRPhase(pending) { const {member, request} = this.props; - // TODO change the button into a spinner when on click const AccessibleButton = sdk.getComponent('elements.AccessibleButton'); let button;