2017-02-17 00:46:39 +00:00
|
|
|
import React, { PureComponent } from 'react';
|
2015-12-28 23:34:32 +00:00
|
|
|
|
2017-02-17 00:46:39 +00:00
|
|
|
export default class UserListItem extends PureComponent {
|
2017-05-27 05:30:22 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|