]> Untitled Git - lemmy-ui.git/blob - src/shared/components/app/no-match.tsx
Merge branch 'rate-limiting-tab' of https://github.com/SleeplessOne1917/lemmy-ui...
[lemmy-ui.git] / src / shared / components / app / no-match.tsx
1 import { NoOptionI18nKeys } from "i18next";
2 import { Component } from "inferno";
3 import { i18n } from "../../i18next";
4
5 export class NoMatch extends Component<any, any> {
6   private errCode = new URLSearchParams(this.props.location.search).get(
7     "err"
8   ) as NoOptionI18nKeys;
9
10   constructor(props: any, context: any) {
11     super(props, context);
12   }
13
14   render() {
15     return (
16       <div className="container-lg">
17         <h1>404</h1>
18         {this.errCode && (
19           <h3>
20             {i18n.t("code")}: {i18n.t(this.errCode)}
21           </h3>
22         )}
23       </div>
24     );
25   }
26 }