We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 215ad92 commit 2e06daaCopy full SHA for 2e06daa
src/ChatReact/ChatReact/js/components/Actions.js
@@ -7,6 +7,7 @@ var Actions = Reflux.createActions([
7
"showError",
8
"logError",
9
"announce",
10
+ "userSelected",
11
"setText",
12
"toggleExamples"
13
]);
src/ChatReact/ChatReact/js/components/User.jsx
@@ -1,12 +1,12 @@
1
var User = React.createClass({
2
- privateMsg: function(e) {
3
- Actions.setText("@" + e.target.innerHTML + " ");
+ handleClick: function() {
+ Actions.userSelected(this.props.user);
4
},
5
render: function() {
6
return (
<div className="user">
<img src={this.props.user.profileUrl || "/img/no-profile64.png"}/>
- <span onClick={this.privateMsg}>
+ <span onClick={this.handleClick}>
{this.props.user.displayName}
</span>
</div>
0 commit comments