From 88cadd52a8d178ead74abd1ec9f8b6af6f4377a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 15 Sep 2021 19:54:43 +0200 Subject: [PATCH] Convert VerificationQRCode to TS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- ...ificationQRCode.js => VerificationQRCode.tsx} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename src/components/views/elements/crypto/{VerificationQRCode.js => VerificationQRCode.tsx} (79%) 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 ( );