diff --git a/framework/core/js/src/forum/components/WelcomeHero.tsx b/framework/core/js/src/forum/components/WelcomeHero.tsx index 1ed34cade..f60fce3d7 100644 --- a/framework/core/js/src/forum/components/WelcomeHero.tsx +++ b/framework/core/js/src/forum/components/WelcomeHero.tsx @@ -2,6 +2,7 @@ import app from '../app'; import Component from '../../common/Component'; import Button from '../../common/components/Button'; import type Mithril from 'mithril'; +import ItemList from '../../common/utils/ItemList'; export interface IWelcomeHeroAttrs {} @@ -39,8 +40,7 @@ export default class WelcomeHero extends Component { />
-

{app.forum.attribute('welcomeTitle')}

-
{m.trust(app.forum.attribute('welcomeMessage'))}
+ {this.welcomeItems().toArray()}
@@ -66,4 +66,13 @@ export default class WelcomeHero extends Component { return false; } + + welcomeItems(): ItemList { + const items = new ItemList(); + + items.add('hero-title',

{app.forum.attribute('welcomeTitle')}

, 20); + items.add('hero-subtitle',
{m.trust(app.forum.attribute('welcomeMessage'))}
, 10); + + return items; + } }