i18n and remove propTypes
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/13329/head
parent
51dc4bbbe4
commit
26b2a18b6d
|
@ -396,7 +396,7 @@ const CompatibilityView: React.FC<IProps> = ({ onAccept }) => {
|
|||
<div className="mx_HomePage_row mx_Center mx_Spacer">
|
||||
<p className="mx_Spacer">
|
||||
<a href="https://riot.im" target="_blank" className="mx_FooterLink">
|
||||
Go to Riot.im
|
||||
{ _t("Go to Riot.im") }
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -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<IProps> = ({title, messages}) => {
|
|||
<div className="mx_HomePage_row mx_Center mx_Spacer">
|
||||
<p className="mx_Spacer">
|
||||
<a href="https://riot.im" target="_blank" className="mx_FooterLink">
|
||||
Go to Riot.im
|
||||
{ _t("Go to Riot.im") }
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
@ -58,10 +57,5 @@ const ErrorView: React.FC<IProps> = ({title, messages}) => {
|
|||
</div>;
|
||||
};
|
||||
|
||||
ErrorView.propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
messages: PropTypes.arrayOf(PropTypes.string.isRequired),
|
||||
};
|
||||
|
||||
export default ErrorView;
|
||||
|
||||
|
|
Loading…
Reference in New Issue