-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotFound.jsx
34 lines (29 loc) · 877 Bytes
/
NotFound.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from "react"
import PropTypes from "prop-types"
import * as ReactRouter from "react-router-dom"
import Helmet from "react-helmet"
const Styles = require("./NotFound.less")
export default class NotFound extends React.Component {
static propTypes = {
staticContext: PropTypes.shape({
pageNotFound: PropTypes.bool,
}),
};
constructor(props) {
super(props)
if (props.staticContext)
props.staticContext.pageNotFound = true
}
render() {
return <div className={Styles.root}>
<Helmet>
<title>404</title>
</Helmet>
<div className="body">
<div className="header">Page not found</div>
<div className="p">Sorry, but the page you were trying to view does not exist.</div>
<div className="links"><ReactRouter.Link to="/">🏠</ReactRouter.Link></div>
</div>
</div>
}
}