i18n and remove propTypes

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-04-28 00:35:49 +01:00
parent 51dc4bbbe4
commit 26b2a18b6d
2 changed files with 2 additions and 8 deletions

View file

@ -396,7 +396,7 @@ const CompatibilityView: React.FC<IProps> = ({ onAccept }) => {
<div className="mx_HomePage_row mx_Center mx_Spacer"> <div className="mx_HomePage_row mx_Center mx_Spacer">
<p className="mx_Spacer"> <p className="mx_Spacer">
<a href="https://riot.im" target="_blank" className="mx_FooterLink"> <a href="https://riot.im" target="_blank" className="mx_FooterLink">
Go to Riot.im { _t("Go to Riot.im") }
</a> </a>
</p> </p>
</div> </div>

View file

@ -15,7 +15,6 @@ limitations under the License.
*/ */
import * as React from "react"; import * as React from "react";
import * as PropTypes from "prop-types";
import { _t } from "matrix-react-sdk/src/languageHandler"; 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 // 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<IProps> = ({title, messages}) => {
<div className="mx_HomePage_row mx_Center mx_Spacer"> <div className="mx_HomePage_row mx_Center mx_Spacer">
<p className="mx_Spacer"> <p className="mx_Spacer">
<a href="https://riot.im" target="_blank" className="mx_FooterLink"> <a href="https://riot.im" target="_blank" className="mx_FooterLink">
Go to Riot.im { _t("Go to Riot.im") }
</a> </a>
</p> </p>
</div> </div>
@ -58,10 +57,5 @@ const ErrorView: React.FC<IProps> = ({title, messages}) => {
</div>; </div>;
}; };
ErrorView.propTypes = {
title: PropTypes.string.isRequired,
messages: PropTypes.arrayOf(PropTypes.string.isRequired),
};
export default ErrorView; export default ErrorView;