Skip to content

Commit

Permalink
Use bigger icon image
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosuge committed Aug 31, 2015
1 parent f78d1ca commit 34bbff8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/renderer/components/tweet.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,28 @@ React = require 'react'

module.exports =
Tweet = React.createClass
profileImageUrl: ->
this.props.tweet.user.profile_image_url.replace('_normal', '_reasonably_small')

propTypes:
tweet: React.PropTypes.object.isRequired

render: ->
<div className="tweet">
<div className="profile-image">
<img src={ this.props.tweet.user.profile_image_url } />
<img src={ @profileImageUrl() } />
</div>
<div className="contents">
<div className="name-contents">
<div className="name">
{ this.props.tweet.user.name }
{ @props.tweet.user.name }
</div>
<div className="screen-name">
{ this.props.tweet.user.screen_name }
{ @props.tweet.user.screen_name }
</div>
</div>
<div className="text">
{ this.props.tweet.text }
{ @props.tweet.text }
</div>
</div>
</div>
Expand Down

0 comments on commit 34bbff8

Please sign in to comment.