dispatch/client/src/js/components/pages/Chat/UserListItem.js

14 lines
319 B
JavaScript
Raw Normal View History

import React, { PureComponent } from 'react';
2015-12-28 23:34:32 +00:00
export default class UserListItem extends PureComponent {
handleClick = () => this.props.onClick(this.props.user.nick);
2015-12-28 23:34:32 +00:00
render() {
2017-03-23 19:38:27 +00:00
return (
<p style={this.props.style} onClick={this.handleClick}>
{this.props.user.renderName}
</p>
);
2015-12-28 23:34:32 +00:00
}
}