mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Move slot config to index
This commit is contained in:
@@ -10,8 +10,6 @@ const lang = new I18n(translations);
|
||||
|
||||
export default class RespectButton extends React.Component {
|
||||
|
||||
static slot = 'comment.detail';
|
||||
|
||||
handleClick = () => {
|
||||
const {postRespect, showSignInDialog, deleteAction, commentId} = this.props;
|
||||
const {me, comment} = this.props.data;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import RespectButton from './containers/RespectButton';
|
||||
export default {
|
||||
components: [RespectButton]
|
||||
slots: {
|
||||
'comment.detail': [RespectButton],
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user