mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-29 01:19:41 +05:00
feat: add comment voting
This commit is contained in:
parent
b5520cb06c
commit
fc1d3d26f6
3 changed files with 106 additions and 14 deletions
|
@ -37,10 +37,7 @@ export const CommentsMain = (props: {
|
|||
required
|
||||
></textarea>
|
||||
</div>
|
||||
<Button
|
||||
type="submit"
|
||||
color="blue"
|
||||
>
|
||||
<Button type="submit" color="blue">
|
||||
Оставить комментарий
|
||||
</Button>
|
||||
</form>
|
||||
|
@ -53,9 +50,11 @@ export const CommentsMain = (props: {
|
|||
id: comment.id,
|
||||
timestamp: comment.timestamp,
|
||||
message: comment.message,
|
||||
likes: comment.likes_count,
|
||||
reply_count: comment.reply_count,
|
||||
likes_count: comment.likes_count,
|
||||
vote: comment.vote,
|
||||
}}
|
||||
token={props.token}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue