mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Comment button
This commit is contained in:
parent
254482e812
commit
dafcefd4f4
1 changed files with 9 additions and 9 deletions
|
@ -42,6 +42,15 @@ export default function NewsEntry({
|
|||
)}
|
||||
</div>
|
||||
<div className={'actions'}>
|
||||
<Comments
|
||||
uid={uid}
|
||||
onReact={(path, reaction, isDelete) => {
|
||||
onCommentReact({ path, reaction, isDelete })
|
||||
}}
|
||||
onComment={onComment}
|
||||
onDelete={onDelete}
|
||||
comments={comments}
|
||||
/>
|
||||
{uid === user ? (
|
||||
<span
|
||||
onClick={() => {
|
||||
|
@ -59,15 +68,6 @@ export default function NewsEntry({
|
|||
}}
|
||||
/>
|
||||
</div>
|
||||
<Comments
|
||||
uid={uid}
|
||||
onReact={(path, reaction, isDelete) => {
|
||||
onCommentReact({ path, reaction, isDelete })
|
||||
}}
|
||||
onComment={onComment}
|
||||
onDelete={onDelete}
|
||||
comments={comments}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue