-
Notifications
You must be signed in to change notification settings - Fork 3
/
not-found.js
35 lines (29 loc) · 869 Bytes
/
not-found.js
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
35
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {withRouter} from 'react-router';
// Common
import logo from '../images/logo.svg';
import Layout from './_layout';
// Styles
import './styles/App.css';
class NotFound extends Component {
static propTypes = {
location: PropTypes.object,
};
render() {
const {location} = this.props;
return (
<Layout className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Page not found</h2>
</div>
<p className="App-intro">
This route is not defined
</p>
<pre>{location.pathname}</pre>
</Layout>
);
}
}
export default withRouter(NotFound);