2019-12-08 22:43:49 +01:00
|
|
|
/** @jsx React.DOM */
|
|
|
|
|
2022-10-08 20:37:38 +02:00
|
|
|
var Rival = createReactClass({
|
2019-12-08 22:43:49 +01:00
|
|
|
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>;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
});
|