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;