This repository was archived by the owner on Sep 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 798
/
Copy pathcontacts.js
executable file
·46 lines (43 loc) · 1.73 KB
/
contacts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
define(
[
'react',
'create-react-class',
],
function (React, createReactClass) {
var Contacts = createReactClass({
render: function() {
var contacts = this.props.contacts.map(function(contactDetails, iterator){
return (
<li key={"contact"+iterator}>
<a href={contactDetails.link}>
<img className="contacts-list-img" src={contactDetails.displayPicture} />
<div className="contacts-list-info">
<span className="contacts-list-name">
{contactDetails.displayName}
<small className="contacts-list-date pull-right">
{contactDetails.date}
</small>
</span>
<span className="contacts-list-msg">
{contactDetails.message}
</span>
</div>
{/* /.contacts-list-info */}
</a>
</li>
)
});
return (
<div className="direct-chat-contacts">
<ul className="contacts-list">
{contacts}
{/* End Contact Item */}
</ul>
{/* /.contatcts-list */}
</div>
)
}
});
return Contacts;
}
)