Organize components, use webpack import aliases
This commit is contained in:
parent
f174d98107
commit
86c5451edb
50 changed files with 269 additions and 133 deletions
13
client/src/js/components/pages/Chat/UserListItem.js
Normal file
13
client/src/js/components/pages/Chat/UserListItem.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import React, { PureComponent } from 'react';
|
||||
|
||||
export default class UserListItem extends PureComponent {
|
||||
handleClick = () => this.props.onClick(this.props.user.nick);
|
||||
|
||||
render() {
|
||||
return (
|
||||
<p style={this.props.style} onClick={this.handleClick}>
|
||||
{this.props.user.renderName}
|
||||
</p>
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue