-
Notifications
You must be signed in to change notification settings - Fork 2
/
Avatar.jsx
50 lines (46 loc) · 1.13 KB
/
Avatar.jsx
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
47
48
49
50
/** @jsx React.DOM */
'use strict'
var React = require('react')
require("./styles/BountyAvatar.less")
var avdata = [
{
key: "94819080",
fname: 'Colleen Palmer',
image: "https://pbs.twimg.com/profile_images/1261155890/ic_400x400.jpg",
email: "[email protected]"
},
{
key: "1826334",
fname: 'Pixel Palmer',
image: 'https://pbs.twimg.com/profile_images/1440938955/pixelic_400x400.jpg',
email: "[email protected]"
},
{
key: "0958943",
fname: 'Blake Simkins',
image: "https://s3.amazonaws.com/uifaces/faces/twitter/blakesimkins/128.jpg",
email: "[email protected]"
}
]
module.exports = React.createClass({
displayName: 'Avatar',
render: function() {
return (
<div className="BHAvatar">
{this.props.data.map(function (avdata) {
return (
<Avatar
key={avdata.key}
size={32}
round={true}
name={avdata.fname}
src={avdata.image}
email={avdata.email}
className="AvatarImg"
/>
);
})}
</div>
);
}
})