diff --git a/js/forum/src/ForumApplication.tsx b/js/forum/src/ForumApplication.tsx index eb2ae89cc..c01489ace 100644 --- a/js/forum/src/ForumApplication.tsx +++ b/js/forum/src/ForumApplication.tsx @@ -1,9 +1,15 @@ -import * as m from 'mithril'; import Application from './lib/Application'; import routes from './routes'; -import Nav from './components/Nav'; +import Search from './components/Search'; export default class ForumApplication extends Application { + /** + * The page's search component instance. + * + * @type {SearchBox} + */ + search = new Search(); + /** * A map of notification types to their components. * @@ -18,23 +24,10 @@ export default class ForumApplication extends Application { */ postComponents = {}; - /** - * The page's search component instance. - * - * @type {SearchBox} - */ - search = new Search(); + //app.postComponents.comment = CommentPost; + //app.postComponents.discussionRenamed = DiscussionRenamedPost; - /** - * @inheritdoc - */ - mount() { - m.route.prefix('#'); - - super.mount(); - - m.mount(document.getElementById('nav'),