This commit is contained in:
DD Liu 2021-05-26 15:00:52 -04:00
parent cd930046bb
commit 2179ade65e
2 changed files with 13 additions and 15 deletions

View file

@ -1,13 +1,10 @@
const React = require('react');
const bindAll = require('lodash.bindall');
const FormattedMessage = require('react-intl').FormattedMessage;
function StudioCommentsNotAllowed () {
return (
const StudioCommentsNotAllowed = () => (
<div className="studio-comments-not-allowed">
<FormattedMessage id="studio.commentsNotAllowed" />
</div>
)
}
);
module.exports = StudioCommentsNotAllowed;

View file

@ -63,13 +63,14 @@ const StudioComments = ({
{canEditCommentsAllowed && <StudioCommentsAllowed />}
</div>
<div>
{shouldShowCommentComposer &&
commentsAllowed ?
{shouldShowCommentComposer ?
(commentsAllowed ?
<ComposeComment
postURI={postURI}
onAddComment={handleNewComment}
/> :
<StudioCommentsNotAllowed />
) : null
}
{comments.map(comment => (
<TopLevelComment