mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-29 00:10:54 +05:30
Added Page Not Found route
This commit is contained in:
parent
45fea4dca7
commit
6e9ac75184
7
src/pages/404/PageNotFound.jsx
Normal file
7
src/pages/404/PageNotFound.jsx
Normal 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>
|
||||
);
|
||||
}
|
@ -6,6 +6,7 @@ import IndexPage from 'pages/index/IndexPage';
|
||||
import AuthPage from 'pages/auth/AuthPage';
|
||||
|
||||
import RulesPage from 'pages/rules/RulesPage';
|
||||
import PageNotFound from 'pages/404/PageNotFound';
|
||||
|
||||
import ProfilePage from 'pages/profile/ProfilePage';
|
||||
import ProfileChangePasswordPage from 'pages/profile/ChangePasswordPage';
|
||||
@ -69,6 +70,8 @@ export default function routesFactory(store) {
|
||||
<Route path="change-username" component={ProfileChangeUsernamePage} />
|
||||
<Route path="change-email(/:step)(/:code)" component={ProfileChangeEmailPage} />
|
||||
</Route>
|
||||
|
||||
<Route path="*" component={PageNotFound} />
|
||||
</Route>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user