From 26b2a18b6de54368ae3f6535fc5e6011f777fd11 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 28 Apr 2020 00:35:49 +0100 Subject: [PATCH] i18n and remove propTypes Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/async-components/structures/CompatibilityView.tsx | 2 +- src/async-components/structures/ErrorView.tsx | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/async-components/structures/CompatibilityView.tsx b/src/async-components/structures/CompatibilityView.tsx index 98852dd2..9cd090cc 100644 --- a/src/async-components/structures/CompatibilityView.tsx +++ b/src/async-components/structures/CompatibilityView.tsx @@ -396,7 +396,7 @@ const CompatibilityView: React.FC = ({ onAccept }) => {

- Go to Riot.im + { _t("Go to Riot.im") }

diff --git a/src/async-components/structures/ErrorView.tsx b/src/async-components/structures/ErrorView.tsx index 522a14f1..3c2d1e41 100644 --- a/src/async-components/structures/ErrorView.tsx +++ b/src/async-components/structures/ErrorView.tsx @@ -15,7 +15,6 @@ limitations under the License. */ import * as React from "react"; -import * as PropTypes from "prop-types"; import { _t } from "matrix-react-sdk/src/languageHandler"; // directly import the style here as this layer does not support rethemedex at this time so no matrix-react-sdk @@ -50,7 +49,7 @@ const ErrorView: React.FC = ({title, messages}) => {

- Go to Riot.im + { _t("Go to Riot.im") }

@@ -58,10 +57,5 @@ const ErrorView: React.FC = ({title, messages}) => { ; }; -ErrorView.propTypes = { - title: PropTypes.string.isRequired, - messages: PropTypes.arrayOf(PropTypes.string.isRequired), -}; - export default ErrorView;