Skip to content

Commit

Permalink
refs #1018 Show custom reactions for Firefish
Browse files Browse the repository at this point in the history
  • Loading branch information
h3poteto committed Sep 27, 2023
1 parent 6066d4a commit bc1baf3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/timelines/status/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,15 @@ const Status: React.FC<Props> = props => {
{status.emoji_reactions &&
status.emoji_reactions.map(e => (
<Button appearance="subtle" size="sm" key={e.name} onClick={() => emojiClicked(e)}>
{e.name} {e.count}
{e.url ? (
<>
<img src={e.url} style={{ height: '20px' }} /> <span style={{ marginLeft: '0.2em' }}>{e.count}</span>
</>
) : (
<span>
{e.name} {e.count}
</span>
)}
</Button>
))}
</>
Expand Down

0 comments on commit bc1baf3

Please sign in to comment.