feat: add comment voting

This commit is contained in:
Kentai Radiquum 2024-08-06 13:42:15 +05:00
parent b5520cb06c
commit fc1d3d26f6
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 106 additions and 14 deletions

View file

@ -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>