From: shilangyu Date: Mon, 1 Mar 2021 20:44:02 +0000 (+0100) Subject: Add I18nKeys type to errCode X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/%7BrepoUrl%7D?a=commitdiff_plain;h=1939664d736ce3ddbaa84c7106b510df4b950d86;p=lemmy-ui.git Add I18nKeys type to errCode --- diff --git a/src/shared/components/no-match.tsx b/src/shared/components/no-match.tsx index b11c0e5..175f4a9 100644 --- a/src/shared/components/no-match.tsx +++ b/src/shared/components/no-match.tsx @@ -1,8 +1,11 @@ +import { I18nKeys } from "i18next"; import { Component } from "inferno"; import { i18n } from "../i18next"; export class NoMatch extends Component { - private errCode = new URLSearchParams(this.props.location.search).get("err"); + private errCode = new URLSearchParams(this.props.location.search).get( + "err" + ) as I18nKeys; constructor(props: any, context: any) { super(props, context);