12 lines
317 B
JavaScript
12 lines
317 B
JavaScript
|
/** @jsx React.DOM */
|
||
|
|
||
|
var Rival = React.createClass({
|
||
|
render: function() {
|
||
|
if (this.props.player.remote) {
|
||
|
return <span>{ this.props.player.name }</span>;
|
||
|
} else {
|
||
|
return <a href={Link.get('player', this.props.userid)}>{ this.props.player.name }</a>;
|
||
|
}
|
||
|
},
|
||
|
});
|