Skip to content

Commit

Permalink
refactor(core): refactor the extensibility refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Sep 17, 2024
1 parent 3f34802 commit 2b87b2f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions framework/core/js/src/forum/components/IndexPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,12 @@ export default class IndexPage<CustomAttrs extends IIndexPageAttrs = IIndexPageA
contentItems(): ItemList<Mithril.Children> {
const items = new ItemList<Mithril.Children>();

items.add('toolbar', this.toolbarView(), 100);
items.add('discussionList', this.discussionListView(), 90);
items.add('toolbar', <div className="IndexPage-toolbar">{this.toolbarItems().toArray()}</div>, 100);
items.add('discussionList', <DiscussionList state={app.discussions} />, 90);

return items;
}

toolbarView(): Mithril.Children {
return <div className="IndexPage-toolbar">{this.toolbarItems().toArray()}</div>;
}

discussionListView(): Mithril.Children {
return <DiscussionList state={app.discussions} />;
}

toolbarItems(): ItemList<Mithril.Children> {
const items = new ItemList<Mithril.Children>();

Expand Down

0 comments on commit 2b87b2f

Please sign in to comment.