Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Ranking: Linked twitter characters to their detail-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mammuth committed Apr 8, 2016
1 parent 432dcd2 commit 2739fea
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions app/components/public/Ranking/Ranking.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,31 @@ export default class Ranking extends Component {
<div className="ranking-field">
<h2 className="text-center ranking-title">Twitter top 5 loved</h2>
<ul>
{
this.state.twitterTopSentiments.map((char) => {
return <li>{char.name}</li>;
})
}
{
this.state.twitterTopSentiments.map((char) => {
return <li>
<h4><Link to={'/characters/' + char.name}>
{char.name}
</Link></h4>
</li>;
})
}
</ul>
</div>
</Col>
<Col xs={12} sm={6}>
<div className="ranking-field">
<h2 className="text-center ranking-title">Twitter top 5 hated</h2>
<ul>
{
this.state.twitterFlopSentiments.map((char) => {
return <li>{char.name}</li>;
})
}
{
this.state.twitterFlopSentiments.map((char) => {
return <li>
<h4><Link to={'/characters/' + char.name}>
{char.name}
</Link></h4>
</li>;
})
}
</ul>
</div>
</Col>
Expand Down

0 comments on commit 2739fea

Please sign in to comment.