diff --git a/frontend/index.js b/frontend/index.js index ffb3d9a3..06d0d978 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -4,6 +4,7 @@ import { Provider } from 'mobx-react'; import Router from 'react-router/lib/Router'; import Route from 'react-router/lib/Route'; import IndexRoute from 'react-router/lib/IndexRoute'; +import Redirect from 'react-router/lib/Redirect'; import History from 'utils/History'; import stores from 'stores'; @@ -23,6 +24,7 @@ import DocumentScene from 'scenes/DocumentScene'; import DocumentEdit from 'scenes/DocumentEdit'; import Search from 'scenes/Search'; import SlackAuth from 'scenes/SlackAuth'; +import Error404 from 'scenes/Error404'; window.stores = stores; @@ -41,7 +43,7 @@ function requireAuth(nextState, replace) { } render(( -
+
@@ -49,17 +51,30 @@ render(( - + - + - + + + + - { __DEV__ && } + { __DEV__ && }
), document.getElementById('root')); diff --git a/frontend/scenes/Error404/Error404.js b/frontend/scenes/Error404/Error404.js new file mode 100644 index 00000000..8fbe583e --- /dev/null +++ b/frontend/scenes/Error404/Error404.js @@ -0,0 +1,25 @@ +import React from 'react'; +import { Link } from 'react-router'; + +import Layout from 'components/Layout'; +import CenteredContent from 'components/CenteredContent'; + +class Error404 extends React.Component { + render() { + return ( + + +

Not Found

+ +

We're unable to find the page you're trying to find the page you're accessing.

+ +

Maybe you want to try search instead?

+
+
+ ); + } +} + +export default Error404; diff --git a/frontend/scenes/Error404/index.js b/frontend/scenes/Error404/index.js new file mode 100644 index 00000000..d745c11c --- /dev/null +++ b/frontend/scenes/Error404/index.js @@ -0,0 +1,2 @@ +import Error404 from './Error404'; +export default Error404;