Skip to content

Commit 26b2a18

Browse files
committed
i18n and remove propTypes
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 51dc4bb commit 26b2a18

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎src/async-components/structures/CompatibilityView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ const CompatibilityView: React.FC<IProps> = ({ onAccept }) => {
396396
<div className="mx_HomePage_row mx_Center mx_Spacer">
397397
<p className="mx_Spacer">
398398
<a href="https://riot.im" target="_blank" className="mx_FooterLink">
399-
Go to Riot.im
399+
{ _t("Go to Riot.im") }
400400
</a>
401401
</p>
402402
</div>

‎src/async-components/structures/ErrorView.tsx‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ limitations under the License.
1515
*/
1616

1717
import * as React from "react";
18-
import * as PropTypes from "prop-types";
1918
import { _t } from "matrix-react-sdk/src/languageHandler";
2019

2120
// directly import the style here as this layer does not support rethemedex at this time so no matrix-react-sdk
@@ -50,18 +49,13 @@ const ErrorView: React.FC<IProps> = ({title, messages}) => {
5049
<div className="mx_HomePage_row mx_Center mx_Spacer">
5150
<p className="mx_Spacer">
5251
<a href="https://riot.im" target="_blank" className="mx_FooterLink">
53-
Go to Riot.im
52+
{ _t("Go to Riot.im") }
5453
</a>
5554
</p>
5655
</div>
5756
</div>
5857
</div>;
5958
};
6059

61-
ErrorView.propTypes = {
62-
title: PropTypes.string.isRequired,
63-
messages: PropTypes.arrayOf(PropTypes.string.isRequired),
64-
};
65-
6660
export default ErrorView;
6761

0 commit comments

Comments
 (0)