Update propTypes and remove todo
This commit is contained in:
parent
c93b080434
commit
58df4127d3
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue