GraphElement.js
1006 Bytes
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
import React,{PropTypes} from 'react';
import {Table,ButtonGroup,Button,Modal,OverlayTrigger,Input,FormControls,Grid,Row,Col} from 'react-bootstrap';
import Select from 'react-select';
import 'react-select/dist/react-select.css';
import cx from 'classnames';
import s from './GraphElement.scss';
class GraphElement extends React.Component {
constructor (props, context) {
super(props, context);
}
static propTypes={
onDelete: PropTypes.func,
imageUrl:PropTypes.string,
objectName:PropTypes.string,
objectId:PropTypes.string
}
render(){
const {imageUrl,objectName,objectId}= this.props;
const imageStyle = {'backgroundImage': 'url('+imageUrl+')'};
return(
<div className={cx(s.member_token)}>
<span className={cx(s.member_image, s.thumb_24)} style={imageStyle}>
</span>
{objectName}
<i className={cx(s.ts_icon, s.ts_icon_times, s.ts_icon_inherit, s.remove_member_icon)}>
</i>
</div>
);
}
}
export default GraphElement;