Skip to content

Commit

Permalink
postId => id
Browse files Browse the repository at this point in the history
  • Loading branch information
echenley committed Nov 1, 2015
1 parent 20b487d commit 41ee1ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/js/components/PostCommentsLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import React, { PropTypes } from 'react';
import Link from 'react-router/lib/Link';
import pluralize from '../util/pluralize';

const CommentsLink = ({ postId, commentCount }) => (
const CommentsLink = ({ id, commentCount }) => (
<span className="post-info-item">
<Link to={ `/post/${postId}` }>
<Link to={ `/post/${id}` }>
{ pluralize(commentCount, 'comment') }
</Link>
</span>
);

CommentsLink.PropTypes = {
postId: PropTypes.string,
id: PropTypes.string,
commentCount: PropTypes.number
};

Expand Down
2 changes: 1 addition & 1 deletion src/js/components/PostInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const PostLink = React.createClass({
/>
<PostCreatorLink creator={ post.creator } />
<PostTimeAgo time={ post.time } />
<PostCommentsLink postId={ post.id } commentCount={ post.commentCount || 0 } />
<PostCommentsLink id={ post.id } commentCount={ post.commentCount || 0 } />
{ creatorIsLoggedIn && <PostDeleteLink post={ post } /> }
</div>
);
Expand Down

0 comments on commit 41ee1ba

Please sign in to comment.