diff options
author | =Corey Hulen <corey@hulen.com> | 2015-06-14 23:53:32 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-06-14 23:53:32 -0800 |
commit | 56e74239d6b34df8f30ef046f0b0ff4ff0866a71 (patch) | |
tree | 044da29848cf0f5c8607eac34de69065171669cf /web/react/components/post_header.jsx | |
download | chat-56e74239d6b34df8f30ef046f0b0ff4ff0866a71.tar.gz chat-56e74239d6b34df8f30ef046f0b0ff4ff0866a71.tar.bz2 chat-56e74239d6b34df8f30ef046f0b0ff4ff0866a71.zip |
first commit
Diffstat (limited to 'web/react/components/post_header.jsx')
-rw-r--r-- | web/react/components/post_header.jsx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/web/react/components/post_header.jsx b/web/react/components/post_header.jsx new file mode 100644 index 000000000..129db6d14 --- /dev/null +++ b/web/react/components/post_header.jsx @@ -0,0 +1,23 @@ +// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. +// See License.txt for license information. + +var UserProfile = require( './user_profile.jsx' ); +var PostInfo = require('./post_info.jsx'); + +module.exports = React.createClass({ + getInitialState: function() { + return { }; + }, + render: function() { + var post = this.props.post; + + return ( + <ul className="post-header post-header-post"> + <li className="post-header-col post-header__name"><strong><UserProfile userId={post.user_id} /></strong></li> + <li className="post-info--hidden"> + <PostInfo post={post} commentCount={this.props.commentCount} handleCommentClick={this.props.handleCommentClick} allowReply="true" isLastComment={this.props.isLastComment} /> + </li> + </ul> + ); + } +}); |