const React = require('react'); class TeamListItem extends React.Component { constructor(props) { super(props); this.handleTeamRemove = this.handleTeamRemove.bind(this); this.handleTeamEditing = this.handleTeamEditing.bind(this); } handleTeamRemove() { this.props.onTeamRemove(); } handleTeamEditing() { this.props.onTeamEditing(); } render() { var style = { left: { display: 'inline-block', width: 'calc(100% - 100px)', cursor: 'pointer' } }; return (

{ this.props.name }

{ this.props.url }

{'Edit'} {' - '} {'Remove'}
); } } TeamListItem.propTypes = { name: React.PropTypes.string, onTeamEditing: React.PropTypes.func, onTeamRemove: React.PropTypes.func, onTeamClick: React.PropTypes.func, url: React.PropTypes.string }; module.exports = TeamListItem;