diff --git a/src/js/components/PostCommentsLink.jsx b/src/js/components/PostCommentsLink.jsx index 437870a..4d0f140 100644 --- a/src/js/components/PostCommentsLink.jsx +++ b/src/js/components/PostCommentsLink.jsx @@ -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 }) => ( - + { pluralize(commentCount, 'comment') } ); CommentsLink.PropTypes = { - postId: PropTypes.string, + id: PropTypes.string, commentCount: PropTypes.number }; diff --git a/src/js/components/PostInfo.jsx b/src/js/components/PostInfo.jsx index e605998..a02e5e0 100644 --- a/src/js/components/PostInfo.jsx +++ b/src/js/components/PostInfo.jsx @@ -39,7 +39,7 @@ const PostLink = React.createClass({ /> - + { creatorIsLoggedIn && } );