Added Page Not Found route

This commit is contained in:
SleepWalker 2016-06-02 22:26:09 +03:00
parent 45fea4dca7
commit 6e9ac75184
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import React from 'react';
export default function PageNotFound() {
return (
<h1>Sorry, but the thing you are looking for is definitely not here :(</h1>
);
}

View File

@ -6,6 +6,7 @@ import IndexPage from 'pages/index/IndexPage';
import AuthPage from 'pages/auth/AuthPage'; import AuthPage from 'pages/auth/AuthPage';
import RulesPage from 'pages/rules/RulesPage'; import RulesPage from 'pages/rules/RulesPage';
import PageNotFound from 'pages/404/PageNotFound';
import ProfilePage from 'pages/profile/ProfilePage'; import ProfilePage from 'pages/profile/ProfilePage';
import ProfileChangePasswordPage from 'pages/profile/ChangePasswordPage'; import ProfileChangePasswordPage from 'pages/profile/ChangePasswordPage';
@ -69,6 +70,8 @@ export default function routesFactory(store) {
<Route path="change-username" component={ProfileChangeUsernamePage} /> <Route path="change-username" component={ProfileChangeUsernamePage} />
<Route path="change-email(/:step)(/:code)" component={ProfileChangeEmailPage} /> <Route path="change-email(/:step)(/:code)" component={ProfileChangeEmailPage} />
</Route> </Route>
<Route path="*" component={PageNotFound} />
</Route> </Route>
); );
} }