Refactor Webmentions component to improve display of likes and reposts count
All checks were successful
Deploy / deploy (push) Successful in 1m16s
All checks were successful
Deploy / deploy (push) Successful in 1m16s
This commit is contained in:
parent
c9ad64d217
commit
42521444a8
2 changed files with 41 additions and 46 deletions
|
|
@ -42,7 +42,7 @@ const hasAny = facepile.length > 0 || replies.length > 0 || mentions.length > 0;
|
|||
{likes.length > 0 && (
|
||||
<div class="facepile">
|
||||
<h3>
|
||||
{likes.length} {t(locale, likes.length === 1 ? 'webmentions.like' : 'webmentions.likes')}
|
||||
{`${likes.length} ${t(locale, likes.length === 1 ? 'webmentions.like' : 'webmentions.likes')}`}
|
||||
</h3>
|
||||
<ul>
|
||||
{likes.map((m) => (
|
||||
|
|
@ -67,8 +67,7 @@ const hasAny = facepile.length > 0 || replies.length > 0 || mentions.length > 0;
|
|||
{reposts.length > 0 && (
|
||||
<div class="facepile">
|
||||
<h3>
|
||||
{reposts.length}{' '}
|
||||
{t(locale, reposts.length === 1 ? 'webmentions.repost' : 'webmentions.reposts')}
|
||||
{`${reposts.length} ${t(locale, reposts.length === 1 ? 'webmentions.repost' : 'webmentions.reposts')}`}
|
||||
</h3>
|
||||
<ul>
|
||||
{reposts.map((m) => (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue