diff --git a/js/src/common/components/Modal.js b/js/src/common/components/Modal.js index d8072d66f..9b990ad32 100644 --- a/js/src/common/components/Modal.js +++ b/js/src/common/components/Modal.js @@ -27,7 +27,7 @@ export default class Modal extends Component { this.attrs.onshow(() => this.onready()); } - view(vnode) { + view() { if (this.alertAttrs) { this.alertAttrs.dismissible = false; } diff --git a/js/src/common/components/ModalManager.js b/js/src/common/components/ModalManager.js index 6273e60e7..e8e234dcf 100644 --- a/js/src/common/components/ModalManager.js +++ b/js/src/common/components/ModalManager.js @@ -6,7 +6,7 @@ import Component from '../Component'; * overwrite the previous one. */ export default class ModalManager extends Component { - view(vnode) { + view() { const modal = this.attrs.state.modal; return ( diff --git a/js/src/common/components/Placeholder.js b/js/src/common/components/Placeholder.js index 69af18575..7900f3bfa 100644 --- a/js/src/common/components/Placeholder.js +++ b/js/src/common/components/Placeholder.js @@ -9,7 +9,7 @@ import Component from '../Component'; * - `text` */ export default class Placeholder extends Component { - view(vnode) { + view() { return (
{this.attrs.text}
diff --git a/js/src/forum/components/DiscussionList.js b/js/src/forum/components/DiscussionList.js index 63aa37a4a..61fa8d266 100644 --- a/js/src/forum/components/DiscussionList.js +++ b/js/src/forum/components/DiscussionList.js @@ -12,7 +12,7 @@ import Placeholder from '../../common/components/Placeholder'; * - `state` A DiscussionListState object that represents the discussion lists's state. */ export default class DiscussionList extends Component { - view(vnode) { + view() { const state = this.attrs.state; const params = state.getParams(); diff --git a/js/src/forum/components/DiscussionListItem.js b/js/src/forum/components/DiscussionListItem.js index 48666c623..f9ccb1d60 100644 --- a/js/src/forum/components/DiscussionListItem.js +++ b/js/src/forum/components/DiscussionListItem.js @@ -54,7 +54,7 @@ export default class DiscussionListItem extends Component { }; } - view(vnode) { + view() { const discussion = this.attrs.discussion; const user = discussion.user(); const isUnread = discussion.isUnread(); diff --git a/js/src/forum/components/PostStreamScrubber.js b/js/src/forum/components/PostStreamScrubber.js index 056175533..93cb3d7ce 100644 --- a/js/src/forum/components/PostStreamScrubber.js +++ b/js/src/forum/components/PostStreamScrubber.js @@ -22,7 +22,7 @@ export default class PostStreamScrubber extends Component { this.scrollListener = new ScrollListener(this.updateScrubberValues.bind(this, { fromScroll: true, forceHeightChange: true })); } - view(vnode) { + view() { const count = this.stream.count(); // Index is left blank for performance reasons, it is filled in in updateScubberValues diff --git a/js/src/forum/utils/alertEmailConfirmation.js b/js/src/forum/utils/alertEmailConfirmation.js index 5ba9dd72b..cbaab8319 100644 --- a/js/src/forum/utils/alertEmailConfirmation.js +++ b/js/src/forum/utils/alertEmailConfirmation.js @@ -23,7 +23,7 @@ export default function alertEmailConfirmation(app) { this.content = app.translator.trans('core.forum.user_email_confirmation.resend_button'); } - view(vnode) { + view() { return (