mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
Adding fragment Slot
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.authorName {
|
||||
margin-right: 5px;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
@@ -439,7 +439,7 @@ export default class Comment extends React.Component {
|
||||
|
||||
<Slot
|
||||
className={'talk-stream-comment-user-name'}
|
||||
fill="authorName"
|
||||
fill="commentAuthorName"
|
||||
defaultComponent={AuthorName}
|
||||
queryData={queryData}
|
||||
{...slotProps}
|
||||
|
||||
@@ -15,7 +15,8 @@ const slots = [
|
||||
'commentActions',
|
||||
'commentContent',
|
||||
'commentReactions',
|
||||
'commentAvatar'
|
||||
'commentAvatar',
|
||||
'commentAuthorName'
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user