blob: 0e969cc1628601cba560f1e4c047abc517d28086 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import React from 'react';
import Avatar from './Avatar';
export default class Contact extends React.Component {
render() {
const { user } = this.props;
return (
<React.Fragment>
<Avatar user={user} link={`/pm/${user.uname}`} />
{user.uname }{ user.unreadCount && <span className="badge">{user.unreadCount}</span>}
</React.Fragment>
);
}
}
|