var React require react var Router require react-router var RouteHandl

 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
var React = require("react");
var Router = require('react-router');
var RouteHandler = Router.RouteHandler;
var Link = Router.Link;
var PlacementRow = React.createClass({
showAlert: function(e) {
},
render: function(){
var classes = this.props.overallRevenue < 0 ? "placement-row--negative" : "placement-row--positive";
classes += " placement-row";
return (
<div>
<Link query={{"sort": "dobradoshli", "mobile": "true"}} activeClassName="abclass" to="placement" activeStyle={{'color': 'blue'}} params={{"id": this.props.placementId}} className={classes} onClick={this.showAlert}>
<div className="placement-row__name">{this.props.name}</div>
<div className="placement-row__daily-revenue">{this.props.dailyRevenue}</div>
<div className="placement-row__overall-revenue">{this.props.overallRevenue}</div>
</Link>
<RouteHandler placementId={this.props.placementId} />
</div>
);
}
});
module.exports = PlacementRow;