Simple camelCase for slot naming

This commit is contained in:
Chi Vinh Le
2017-04-06 20:08:41 +07:00
parent 025df1918d
commit 31cdf964f7
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="commentInfoBar" 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="commentDetail" commentId={comment.id} />
</div>
<div className="commentActionsRight comment__action-container">
<ActionButton>
+1 -1
View File
@@ -1,6 +1,6 @@
import RespectButton from './containers/RespectButton';
export default {
slots: {
'comment.detail': [RespectButton],
commentDetail: [RespectButton],
}
};