mirror of
https://github.com/flarum/core.git
synced 2025-07-18 15:21:16 +02:00
17 lines
649 B
JavaScript
17 lines
649 B
JavaScript
import CommentPost from 'flarum/components/CommentPost';
|
|
import DiscussionRenamedPost from 'flarum/components/DiscussionRenamedPost';
|
|
import DiscussionRenamedNotification from 'flarum/components/DiscussionRenamedNotification';
|
|
|
|
/**
|
|
* The `components` initializer registers components to display the default post
|
|
* types, activity types, and notifications type with the application.
|
|
*
|
|
* @param {ForumApp} app
|
|
*/
|
|
export default function components(app) {
|
|
app.postComponents.comment = CommentPost;
|
|
app.postComponents.discussionRenamed = DiscussionRenamedPost;
|
|
|
|
app.notificationComponents.discussionRenamed = DiscussionRenamedNotification;
|
|
}
|