mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Changed api endpoints
This commit is contained in:
parent
d84948918f
commit
b2034089cd
4 changed files with 48 additions and 47 deletions
|
@ -8,7 +8,8 @@ import styles from './newsEntry.module.css'
|
|||
export default function NewsEntry({
|
||||
newsItem,
|
||||
uid,
|
||||
onReact,
|
||||
onCommentReact,
|
||||
onNewsReact,
|
||||
onComment,
|
||||
onDelete,
|
||||
onPostDelete,
|
||||
|
@ -47,14 +48,14 @@ export default function NewsEntry({
|
|||
existingReacts={reacts}
|
||||
uid={uid}
|
||||
onClick={(reaction, isDelete) => {
|
||||
onReact({ type: 'news', reaction, isDelete })
|
||||
onNewsReact({ reaction, isDelete })
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<Comments
|
||||
uid={uid}
|
||||
onReact={(path, reaction, isDelete) => {
|
||||
onReact({ type: 'comment', path, reaction, isDelete })
|
||||
onCommentReact({ path, reaction, isDelete })
|
||||
}}
|
||||
onComment={onComment}
|
||||
onDelete={onDelete}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue