diff --git a/src/components/views/elements/crypto/VerificationQRCode.js b/src/components/views/elements/crypto/VerificationQRCode.tsx similarity index 79% rename from src/components/views/elements/crypto/VerificationQRCode.js rename to src/components/views/elements/crypto/VerificationQRCode.tsx index 76cfb82d35..be9ede59b1 100644 --- a/src/components/views/elements/crypto/VerificationQRCode.js +++ b/src/components/views/elements/crypto/VerificationQRCode.tsx @@ -15,20 +15,20 @@ limitations under the License. */ import React from "react"; -import PropTypes from "prop-types"; import { replaceableComponent } from "../../../../utils/replaceableComponent"; import QRCode from "../QRCode"; +import { QRCodeData } from "matrix-js-sdk/src/crypto/verification/QRCode"; + +interface IProps { + qrCodeData: QRCodeData; +} @replaceableComponent("views.elements.crypto.VerificationQRCode") -export default class VerificationQRCode extends React.PureComponent { - static propTypes = { - qrCodeData: PropTypes.object.isRequired, - }; - - render() { +export default class VerificationQRCode extends React.PureComponent { + public render(): JSX.Element { return ( );