-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee98e92
commit 0977da3
Showing
7 changed files
with
44 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const React = require('react'); | ||
|
||
class Owner extends React.Component { | ||
render() { | ||
const { profile_image, display_name, reputation, link } = this.props.owner; | ||
|
||
return ( | ||
<div> | ||
<hr /> | ||
<div className="is-pulled-right"> | ||
<div className="image is-32x32" style={{ marginRight: 10, display: 'inline-block' }}> | ||
<img src={profile_image} alt="Poster Image" /> | ||
</div> | ||
|
||
<span className="is-inline-block"> | ||
<small>{display_name}</small><br /> | ||
<small>{reputation}</small> | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
Owner.propTypes = { | ||
owner: React.PropTypes.shape({ | ||
profile_image: React.PropTypes.string, | ||
display_name: React.PropTypes.string, | ||
reputation: React.PropTypes.number, | ||
link: React.PropTypes.string, | ||
}), | ||
} | ||
|
||
module.exports = Owner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters