aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Contact.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-21 14:59:56 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commitbc2e876c592d5b3c117108baf5a5a58905510eae (patch)
tree29cf37494d6bd3f79cd7819ca58f97875142b923 /vnext/src/components/Contact.js
parent586d67c8e43970cc8c6e936f9eda48df5128efa8 (diff)
Add PM components
Diffstat (limited to 'vnext/src/components/Contact.js')
-rw-r--r--vnext/src/components/Contact.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/vnext/src/components/Contact.js b/vnext/src/components/Contact.js
new file mode 100644
index 00000000..0e969cc1
--- /dev/null
+++ b/vnext/src/components/Contact.js
@@ -0,0 +1,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>
+ );
+ }
+}