camelCase for slot names

This commit is contained in:
Chi Vinh Le
2017-04-06 19:55:24 +07:00
parent a018a8f9bb
commit 92146f326f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -158,7 +158,7 @@ class Comment extends React.Component {
? <TagLabel><BestIndicator /></TagLabel>
: null }
<PubDate created_at={comment.created_at} />
<Slot fill="Comment.InfoBar" commentId={comment.id} />
<Slot fill="comment.infoBar" commentId={comment.id} />
<Content body={comment.body} />
<div className="commentActionsLeft comment__action-container">
@@ -189,7 +189,7 @@ class Comment extends React.Component {
removeBest={removeBestTag} />
</IfUserCanModifyBest>
</ActionButton>
<Slot fill="Comment.Detail" commentId={comment.id} />
<Slot fill="comment.detail" commentId={comment.id} />
</div>
<div className="commentActionsRight comment__action-container">
<ActionButton>
@@ -10,7 +10,7 @@ const lang = new I18n(translations);
export default class RespectButton extends React.Component {
static slot = 'Comment.Detail';
static slot = 'comment.detail';
handleClick = () => {
const {postRespect, showSignInDialog, deleteAction, commentId} = this.props;