StatusInteractionBar: combine likes and reactions again
This commit is contained in:
parent
33dc2f1a02
commit
b556166efa
|
@ -52,10 +52,10 @@ const StatusInteractionBar: React.FC<IStatusInteractionBar> = ({ status }): JSX.
|
||||||
const getNormalizedReacts = () => {
|
const getNormalizedReacts = () => {
|
||||||
return reduceEmoji(
|
return reduceEmoji(
|
||||||
ImmutableList(status.pleroma.get('emoji_reactions') as any),
|
ImmutableList(status.pleroma.get('emoji_reactions') as any),
|
||||||
0,
|
status.favourites_count,
|
||||||
false,
|
status.favourited,
|
||||||
allowedEmoji,
|
allowedEmoji,
|
||||||
).reverse();
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleOpenReblogsModal: React.EventHandler<React.MouseEvent> = (e) => {
|
const handleOpenReblogsModal: React.EventHandler<React.MouseEvent> = (e) => {
|
||||||
|
@ -142,8 +142,7 @@ const StatusInteractionBar: React.FC<IStatusInteractionBar> = ({ status }): JSX.
|
||||||
return (
|
return (
|
||||||
<HStack space={3}>
|
<HStack space={3}>
|
||||||
{getReposts()}
|
{getReposts()}
|
||||||
{getFavourites()}
|
{features.emojiReacts ? getEmojiReacts() : getFavourites()}
|
||||||
{features.emojiReacts && getEmojiReacts()}
|
|
||||||
</HStack>
|
</HStack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue