Re-add nick click handler in Message

This commit is contained in:
Ken-Håvard Lieng 2017-05-06 23:02:45 +02:00
parent 52acec9d21
commit cbe3b95d8c

View File

@ -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';