diff --git a/js/src/forum/components/ErrorPage.js b/js/src/forum/components/ErrorPage.js new file mode 100644 index 000000000..6abc6ed4c --- /dev/null +++ b/js/src/forum/components/ErrorPage.js @@ -0,0 +1,13 @@ +import Page from '../../common/components/Page'; + +export default class NotAuthenticatedErrorPage extends Page { + view() { + return ( +
+
+

Error!

+
+
+ ); + } +} diff --git a/js/src/forum/routes.js b/js/src/forum/routes.js index 6f10c27c5..90204a24e 100644 --- a/js/src/forum/routes.js +++ b/js/src/forum/routes.js @@ -4,6 +4,7 @@ import PostsUserPage from './components/PostsUserPage'; import DiscussionsUserPage from './components/DiscussionsUserPage'; import SettingsPage from './components/SettingsPage'; import NotificationsPage from './components/NotificationsPage'; +import ErrorPage from './components/ErrorPage'; import DiscussionPageResolver from './resolvers/DiscussionPageResolver'; /** @@ -24,6 +25,8 @@ export default function (app) { settings: { path: '/settings', component: SettingsPage }, notifications: { path: '/notifications', component: NotificationsPage }, + + error: { path: '/:error', component: ErrorPage }, }; /**