summaryrefslogtreecommitdiffstats
path: root/web/react/components/post.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-09-03 10:49:36 -0400
committerChristopher Speller <crspeller@gmail.com>2015-09-03 15:00:47 -0400
commit4b22c1f99cb05be5ca187f2fd70ee2664c34de57 (patch)
treebfbaa7c5c849b6656eb8ea1267ce36028b0670b2 /web/react/components/post.jsx
parente69e2db6b4724517a39c57e3689dec82608581ee (diff)
downloadchat-4b22c1f99cb05be5ca187f2fd70ee2664c34de57.tar.gz
chat-4b22c1f99cb05be5ca187f2fd70ee2664c34de57.tar.bz2
chat-4b22c1f99cb05be5ca187f2fd70ee2664c34de57.zip
Upgrading ESLint and adding some more rules. Refactoring to meet these new rules
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r--web/react/components/post.jsx15
1 files changed, 10 insertions, 5 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index 5f4aeb961..37de4ecc0 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -143,7 +143,8 @@ export default class Post extends React.Component {
className='post-profile-img'
src={'/api/v1/users/' + post.user_id + '/image?time=' + timestamp}
height='36'
- width='36' />
+ width='36'
+ />
</div>
);
}
@@ -152,7 +153,8 @@ export default class Post extends React.Component {
<div>
<div
id={post.id}
- className={'post ' + sameUserClass + ' ' + rootUser + ' ' + postType + ' ' + currentUserCss} >
+ className={'post ' + sameUserClass + ' ' + rootUser + ' ' + postType + ' ' + currentUserCss}
+ >
{profilePic}
<div className='post__content'>
<PostHeader
@@ -161,21 +163,24 @@ export default class Post extends React.Component {
sameRoot={this.props.sameRoot}
commentCount={commentCount}
handleCommentClick={this.handleCommentClick}
- isLastComment={this.props.isLastComment} />
+ isLastComment={this.props.isLastComment}
+ />
<PostBody
post={post}
sameRoot={this.props.sameRoot}
parentPost={parentPost}
posts={posts}
handleCommentClick={this.handleCommentClick}
- retryPost={this.retryPost} />
+ retryPost={this.retryPost}
+ />
<PostInfo
ref='info'
post={post}
sameRoot={this.props.sameRoot}
commentCount={commentCount}
handleCommentClick={this.handleCommentClick}
- allowReply='true' />
+ allowReply='true'
+ />
</div>
</div>
</div>