GraphElement.js 1006 Bytes
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;