0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Fixed linting warning in Comment component

This commit is contained in:
Simon Backx 2022-07-08 10:45:59 +02:00
parent ff036bba90
commit 0c8c89c651

View file

@ -56,7 +56,7 @@ const Comment = (props) => {
</div>
<div className="ml-14 flex gap-5 items-center">
<Like comment={comment} />
{isNotPublished || !props.parent && <Reply comment={comment} toggleReply={toggleReplyMode} isReplying={isInReplyMode} />}
{(isNotPublished || !props.parent) && <Reply comment={comment} toggleReply={toggleReplyMode} isReplying={isInReplyMode} />}
<h6 className="text-sm text-neutral-400 dark:text-[rgba(255,255,255,0.5)] font-sans">{formatRelativeTime(comment.created_at)}</h6>
<More comment={comment} toggleEdit={toggleEditMode} />
</div>