From 41ee1ba4a6d1c0a52ebe11e33a2657f93204020c Mon Sep 17 00:00:00 2001 From: echenley Date: Sun, 1 Nov 2015 16:09:36 -0600 Subject: [PATCH] postId => id --- src/js/components/PostCommentsLink.jsx | 6 +++--- src/js/components/PostInfo.jsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 && } );