Add replies/reblogs/favourites count to statuses
This commit is contained in:
parent
5d61e6d0c6
commit
bc22b54e4c
|
@ -8,6 +8,7 @@
|
||||||
href={replyIcon}
|
href={replyIcon}
|
||||||
clickListener={false}
|
clickListener={false}
|
||||||
elementId={replyKey}
|
elementId={replyKey}
|
||||||
|
count={repliesCount}
|
||||||
/>
|
/>
|
||||||
<IconButton
|
<IconButton
|
||||||
label={reblogLabel}
|
label={reblogLabel}
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
href={reblogIcon}
|
href={reblogIcon}
|
||||||
clickListener={false}
|
clickListener={false}
|
||||||
elementId={reblogKey}
|
elementId={reblogKey}
|
||||||
|
count={reblogsCount}
|
||||||
ref:reblogIcon
|
ref:reblogIcon
|
||||||
/>
|
/>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
@ -30,6 +32,7 @@
|
||||||
href="#fa-star"
|
href="#fa-star"
|
||||||
clickListener={false}
|
clickListener={false}
|
||||||
elementId={favoriteKey}
|
elementId={favoriteKey}
|
||||||
|
count={favoritesCount}
|
||||||
ref:favoriteIcon
|
ref:favoriteIcon
|
||||||
/>
|
/>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
@ -229,7 +232,10 @@
|
||||||
favoriteKey: ({ uuid }) => `fav-${uuid}`,
|
favoriteKey: ({ uuid }) => `fav-${uuid}`,
|
||||||
reblogKey: ({ uuid }) => `reblog-${uuid}`,
|
reblogKey: ({ uuid }) => `reblog-${uuid}`,
|
||||||
replyKey: ({ uuid }) => `reply-${uuid}`,
|
replyKey: ({ uuid }) => `reply-${uuid}`,
|
||||||
optionsKey: ({ uuid }) => `options-${uuid}`
|
optionsKey: ({ uuid }) => `options-${uuid}`,
|
||||||
|
repliesCount: ({ originalStatus }) => originalStatus.replies_count,
|
||||||
|
reblogsCount: ({ originalStatus }) => originalStatus.reblogs_count,
|
||||||
|
favoritesCount: ({ originalStatus }) => originalStatus.favourites_count
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue