Comment button

This commit is contained in:
mrfry 2021-05-21 11:26:56 +02:00
parent 254482e812
commit dafcefd4f4

View file

@ -42,6 +42,15 @@ export default function NewsEntry({
)} )}
</div> </div>
<div className={'actions'}> <div className={'actions'}>
<Comments
uid={uid}
onReact={(path, reaction, isDelete) => {
onCommentReact({ path, reaction, isDelete })
}}
onComment={onComment}
onDelete={onDelete}
comments={comments}
/>
{uid === user ? ( {uid === user ? (
<span <span
onClick={() => { onClick={() => {
@ -59,15 +68,6 @@ export default function NewsEntry({
}} }}
/> />
</div> </div>
<Comments
uid={uid}
onReact={(path, reaction, isDelete) => {
onCommentReact({ path, reaction, isDelete })
}}
onComment={onComment}
onDelete={onDelete}
comments={comments}
/>
</div> </div>
) )
} }