mirror of
https://github.com/wassname/talk.git
synced 2026-08-04 13:23:35 +08:00
Simple camelCase for slot naming
This commit is contained in:
@@ -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,6 +1,6 @@
|
||||
import RespectButton from './containers/RespectButton';
|
||||
export default {
|
||||
slots: {
|
||||
'comment.detail': [RespectButton],
|
||||
commentDetail: [RespectButton],
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user