mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-24 16:18:01 -05:00
Fix lint
This commit is contained in:
parent
cd930046bb
commit
2179ade65e
2 changed files with 13 additions and 15 deletions
|
@ -1,13 +1,10 @@
|
|||
const React = require('react');
|
||||
const bindAll = require('lodash.bindall');
|
||||
const FormattedMessage = require('react-intl').FormattedMessage;
|
||||
|
||||
function StudioCommentsNotAllowed () {
|
||||
return (
|
||||
<div className="studio-comments-not-allowed">
|
||||
<FormattedMessage id="studio.commentsNotAllowed" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
const StudioCommentsNotAllowed = () => (
|
||||
<div className="studio-comments-not-allowed">
|
||||
<FormattedMessage id="studio.commentsNotAllowed" />
|
||||
</div>
|
||||
);
|
||||
|
||||
module.exports = StudioCommentsNotAllowed;
|
||||
|
|
|
@ -63,13 +63,14 @@ const StudioComments = ({
|
|||
{canEditCommentsAllowed && <StudioCommentsAllowed />}
|
||||
</div>
|
||||
<div>
|
||||
{shouldShowCommentComposer &&
|
||||
commentsAllowed ?
|
||||
<ComposeComment
|
||||
postURI={postURI}
|
||||
onAddComment={handleNewComment}
|
||||
/> :
|
||||
<StudioCommentsNotAllowed />
|
||||
{shouldShowCommentComposer ?
|
||||
(commentsAllowed ?
|
||||
<ComposeComment
|
||||
postURI={postURI}
|
||||
onAddComment={handleNewComment}
|
||||
/> :
|
||||
<StudioCommentsNotAllowed />
|
||||
) : null
|
||||
}
|
||||
{comments.map(comment => (
|
||||
<TopLevelComment
|
||||
|
|
Loading…
Reference in a new issue