Clean up container/component relationship
This commit is contained in:
parent
8b0a53b375
commit
993d29242e
22 changed files with 384 additions and 372 deletions
|
@ -1,12 +1,7 @@
|
|||
import React, { PureComponent } from 'react';
|
||||
|
||||
export default class UserListItem extends PureComponent {
|
||||
handleClick = () => {
|
||||
const { tab, user, openPrivateChat, select } = this.props;
|
||||
|
||||
openPrivateChat(tab.server, user.nick);
|
||||
select(tab.server, user.nick, true);
|
||||
};
|
||||
handleClick = () => this.props.onClick(this.props.user.nick);
|
||||
|
||||
render() {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue