mirror of
https://github.com/flarum/core.git
synced 2025-10-14 16:34:26 +02:00
Rename user page components for consistency
This commit is contained in:
26
js/forum/src/components/DiscussionsUserPage.js
Normal file
26
js/forum/src/components/DiscussionsUserPage.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import UserPage from 'flarum/components/UserPage';
|
||||
import DiscussionList from 'flarum/components/DiscussionList';
|
||||
|
||||
/**
|
||||
* The `DiscussionsUserPage` component shows a discussion list inside of a user
|
||||
* page.
|
||||
*/
|
||||
export default class DiscussionsUserPage extends UserPage {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
this.loadUser(m.route.param('username'));
|
||||
}
|
||||
|
||||
content() {
|
||||
return (
|
||||
<div className="DiscussionsUserPage">
|
||||
{DiscussionList.component({
|
||||
params: {
|
||||
q: 'author:' + this.user.username()
|
||||
}
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user