2020-11-10 18:24:47 +00:00
|
|
|
import { Component } from 'inferno';
|
2020-11-10 22:45:59 +00:00
|
|
|
import { i18n } from '../i18next';
|
2020-11-10 18:24:47 +00:00
|
|
|
|
|
|
|
export class NoMatch extends Component<any, any> {
|
2020-11-10 22:45:59 +00:00
|
|
|
private errCode = new URLSearchParams(this.props.location.search).get('err');
|
|
|
|
|
2020-11-10 18:24:47 +00:00
|
|
|
constructor(props: any, context: any) {
|
|
|
|
super(props, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div class="container">
|
|
|
|
<h1>404</h1>
|
2020-11-10 22:45:59 +00:00
|
|
|
{this.errCode && (
|
|
|
|
<h3>
|
|
|
|
{i18n.t('code')}: {i18n.t(this.errCode)}
|
|
|
|
</h3>
|
|
|
|
)}
|
2020-11-10 18:24:47 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|