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