mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +00:00
Add I18nKeys type to errCode
This commit is contained in:
parent
66cc9416e4
commit
1939664d73
1 changed files with 4 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
|||
import { I18nKeys } from "i18next";
|
||||
import { Component } from "inferno";
|
||||
import { i18n } from "../i18next";
|
||||
|
||||
export class NoMatch extends Component<any, any> {
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue