1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

change handler name to suit convention

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2018-01-10 11:51:23 +00:00
parent 05434e782a
commit a977ab9be4

View File

@@ -67,7 +67,7 @@ export default class Quote extends React.Component {
show: !this.props.isNested, show: !this.props.isNested,
}; };
this.onShowNested = this.onShowNested.bind(this); this.onQuoteClick = this.onQuoteClick.bind(this);
} }
getChildContext() { getChildContext() {
@@ -117,7 +117,7 @@ export default class Quote extends React.Component {
this.setState({room, event}); this.setState({room, event});
} }
onShowNested() { onQuoteClick() {
this.setState({ this.setState({
show: true, show: true,
}); });
@@ -141,7 +141,7 @@ export default class Quote extends React.Component {
} }
return <div> return <div>
<a onClick={this.onShowNested} className="mx_Quote_show">{ _t('Quote') }</a> <a onClick={this.onQuoteClick} className="mx_Quote_show">{ _t('Quote') }</a>
<br /> <br />
</div>; </div>;
} }