|
|
@ -3,7 +3,7 @@ import { Link } from 'react-router-dom'; |
|
|
|
import { |
|
|
|
CommentNode as CommentNodeI, |
|
|
|
CommentLikeForm, |
|
|
|
CommentForm as CommentFormI, |
|
|
|
// CommentForm as CommentFormI,
|
|
|
|
EditUserMentionForm, |
|
|
|
SaveCommentForm, |
|
|
|
BanFromCommunityForm, |
|
|
@ -599,7 +599,7 @@ class BaseCommentNode extends Component<CommentNodeProps, CommentNodeState> { |
|
|
|
</PostActionButton> |
|
|
|
</> |
|
|
|
))} |
|
|
|
{/* Admins and sitmods can ban from all */} |
|
|
|
{/* Admins and sitemods can ban from all */} |
|
|
|
{(this.canAdmin || this.canSitemod) && ( |
|
|
|
<> |
|
|
|
{!this.isAdmin && |
|
|
@ -1353,4 +1353,21 @@ class BaseCommentNode extends Component<CommentNodeProps, CommentNodeState> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
class TestComp extends Component { |
|
|
|
constructor(props) { |
|
|
|
super(props); |
|
|
|
|
|
|
|
this.state = { |
|
|
|
loading: true, |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
stopLoading = () => { |
|
|
|
this.setState({ loading: false }); |
|
|
|
}; |
|
|
|
render() { |
|
|
|
return <button onClick={this.stopLoading}>Test</button>; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export const CommentNode = withTheme(BaseCommentNode); |