diff --git a/js/src/forum/components/DiscussionListPane.js b/js/src/forum/components/DiscussionListPane.js index acab2ea04..81cc0a90f 100644 --- a/js/src/forum/components/DiscussionListPane.js +++ b/js/src/forum/components/DiscussionListPane.js @@ -5,13 +5,22 @@ const hotEdge = (e) => { if (e.pageX < 10) app.pane.show(); }; +/** + * The `DiscussionListPane` component displays the list of previously viewed + * discussions in a panel that can be displayed by moving the mouse to the left + * edge of the screen, where it can also be pinned in place. + * + * ### Props + * + * - `state` A DiscussionListState object that represents the discussion lists's state. + */ export default class DiscussionListPane extends Component { view() { - if (!app.discussions.hasDiscussions()) { + if (!this.attrs.state.hasDiscussions()) { return; } - return