projects
/
lemmy-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66cc941
)
Add I18nKeys type to errCode
author
shilangyu
<xmarcinmarcin@gmail.com>
Mon, 1 Mar 2021 20:44:02 +0000
(21:44 +0100)
committer
shilangyu
<xmarcinmarcin@gmail.com>
Mon, 1 Mar 2021 20:44:02 +0000
(21:44 +0100)
src/shared/components/no-match.tsx
patch
|
blob
|
history
diff --git
a/src/shared/components/no-match.tsx
b/src/shared/components/no-match.tsx
index b11c0e54571ec1019a5f146cf6ef402fd9c65637..175f4a9b2a7176cdabe0663adbd67ccede87b236 100644
(file)
--- 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<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);