From aa7d62b7402499297853fad02950679f8a279ce8 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 14 Jun 2018 13:20:16 +0100 Subject: [PATCH] fix naming of methods and fields Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/ShareDialog.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/views/dialogs/ShareDialog.js b/src/components/views/dialogs/ShareDialog.js index e68922d35a..97d496adbc 100644 --- a/src/components/views/dialogs/ShareDialog.js +++ b/src/components/views/dialogs/ShareDialog.js @@ -67,10 +67,10 @@ export default class ShareDialog extends React.Component { super(props); this.onCopyClick = this.onCopyClick.bind(this); - this.onCheckboxClick = this.onCheckboxClick.bind(this); + this.onLinkRecentCheckboxClick = this.onLinkRecentCheckboxClick.bind(this); this.state = { - ticked: false, + linkRecentTicked: false, }; } @@ -116,9 +116,9 @@ export default class ShareDialog extends React.Component { e.target.onmouseleave = close; } - onCheckboxClick() { + onLinkRecentCheckboxClick() { this.setState({ - ticked: !this.state.ticked, + linkRecentTicked: !this.state.linkRecentTicked, }); } @@ -135,16 +135,16 @@ export default class ShareDialog extends React.Component { if (events.length > 0) { checkbox =
+ onClick={this.onLinkRecentCheckboxClick} />
; } - if (this.state.ticked) { + if (this.state.linkRecentTicked) { matrixToUrl = makeEventPermalink(this.props.target.roomId, events[events.length - 1].getId()); } else { matrixToUrl = makeRoomPermalink(this.props.target.roomId);