Skip to content

Commit

Permalink
Updated button handles to send messageReaction activities
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurnford committed Jul 30, 2019
1 parent f5b8db5 commit 4858b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/09.customization-reaction-buttons/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
});

class ActivityWithFeedback extends React.Component {
handleDownvoteButton = () => this.props.postActivity({ type: 'message', name: 'evaluate-activity', value: { activityID: this.props.activityID, helpful: -1 } })
handleUpvoteButton = () => this.props.postActivity({ type: 'message', name: 'evaluate-activity', value: { activityID: this.props.activityID, helpful: 1 } })
handleDownvoteButton = () => this.props.postActivity({ type: 'messageReaction', reactionsAdded: [{ activityID: this.props.activityID, helpful: -1 }] })
handleUpvoteButton = () => this.props.postActivity({ type: 'messageReaction', reactionsAdded: [{ activityID: this.props.activityID, helpful: 1 }] })

render() {
const { props } = this;
Expand Down

0 comments on commit 4858b63

Please sign in to comment.