Skip to content

Commit

Permalink
let > const
Browse files Browse the repository at this point in the history
  • Loading branch information
echenley committed Oct 5, 2015
1 parent c8cd93a commit f5e3796
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/js/components/Comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Actions from '../actions/Actions';

import { Link } from 'react-router';
import Upvote from './Upvote';
import abbreviateNumber from '../util/abbreviateNumber';
import timeAgo from '../util/timeAgo';

const Comment = React.createClass({
Expand All @@ -17,27 +16,22 @@ const Comment = React.createClass({
},

render() {
let {
user,
comment,
showPostTitle
} = this.props;
const { user, comment, showPostTitle } = this.props;
const userUpvoted = user.upvoted || {};

let userUpvoted = user.upvoted || {};

let postLink = showPostTitle && (
const postLink = showPostTitle && (
<span className="post-info-item post-link">
<Link to={ `/post/${comment.postId}` }>{ comment.postTitle }</Link>
</span>
);

let deleteOption = user.uid === comment.creatorUID && (
const deleteOption = user.uid === comment.creatorUID && (
<span className="delete post-info-item">
<a onClick={ () => Actions.deleteComment(comment) }>delete</a>
</span>
);

let upvoteActions = {
const upvoteActions = {
upvote: Actions.upvoteComment,
downvote: Actions.downvoteComment
};
Expand Down

0 comments on commit f5e3796

Please sign in to comment.