]> Untitled Git - lemmy-ui.git/blob - src/shared/components/no-match.tsx
Running newer prettier.
[lemmy-ui.git] / src / shared / components / no-match.tsx
1 import { Component } from "inferno";
2 import { i18n } from "../i18next";
3
4 export class NoMatch extends Component<any, any> {
5   private errCode = new URLSearchParams(this.props.location.search).get("err");
6
7   constructor(props: any, context: any) {
8     super(props, context);
9   }
10
11   render() {
12     return (
13       <div class="container">
14         <h1>404</h1>
15         {this.errCode && (
16           <h3>
17             {i18n.t("code")}: {i18n.t(this.errCode)}
18           </h3>
19         )}
20       </div>
21     );
22   }
23 }