diff --git a/client/src/js/components/Message.js b/client/src/js/components/Message.js index 47c5378c..e3ae51d9 100644 --- a/client/src/js/components/Message.js +++ b/client/src/js/components/Message.js @@ -1,6 +1,8 @@ import React, { PureComponent } from 'react'; export default class Message extends PureComponent { + handleNickClick = () => this.props.onNickClick(this.props.message); + render() { const { message } = this.props; const className = message.type ? `message message-${message.type}` : 'message';