feat: Add upvote %
This commit is contained in:
1 parent
71ca33d9fc
commit
54b1cef68f
3 files changed
+120
-98
No files matched your search
@@ -61,6 +61,14 @@
|
||||
<UserLink user={postRes.creator} />
|
||||
<span>•</span>
|
||||
<RelativeDate date={new Date(postRes.post.published)} />
|
||||
<span>•</span>
|
||||
<span>
|
||||
{Math.floor(
|
||||
(postRes.counts.upvotes /
|
||||
(postRes.counts.upvotes + postRes.counts.downvotes || 1)) *
|
||||
100
|
||||
)}%
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="ml-auto" />
|
||||
|
||||
Reference in new issue
Block a user