From a6a56b455b82dbe0da09b69427be0197c15eb454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Sun, 12 Sep 2021 08:56:29 +0200 Subject: [PATCH] Convert GenericErrorPage to TS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- .../{GenericErrorPage.js => GenericErrorPage.tsx} | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) rename src/components/structures/{GenericErrorPage.js => GenericErrorPage.tsx} (84%) diff --git a/src/components/structures/GenericErrorPage.js b/src/components/structures/GenericErrorPage.tsx similarity index 84% rename from src/components/structures/GenericErrorPage.js rename to src/components/structures/GenericErrorPage.tsx index 017d365273..e3b2133ae8 100644 --- a/src/components/structures/GenericErrorPage.js +++ b/src/components/structures/GenericErrorPage.tsx @@ -15,16 +15,15 @@ limitations under the License. */ import React from 'react'; -import PropTypes from 'prop-types'; import { replaceableComponent } from "../../utils/replaceableComponent"; -@replaceableComponent("structures.GenericErrorPage") -export default class GenericErrorPage extends React.PureComponent { - static propTypes = { - title: PropTypes.object.isRequired, // jsx for title - message: PropTypes.object.isRequired, // jsx to display - }; +interface IProps { + title: JSX.Element; + message: JSX.Element; +} +@replaceableComponent("structures.GenericErrorPage") +export default class GenericErrorPage extends React.PureComponent { render() { return