Skip to content

Commit 23d137b

Browse files
committed
Fix twemoji for buttons
1 parent aac25e7 commit 23d137b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react/src/components/DiscordButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default function DiscordButton({ children, disabled, image, type = 'prima
3333
disabled={disabled}
3434
>
3535
{image && <img className="discord-button-emoji" src={image} alt="" />}
36+
{emoji && <Twemoji options={{ className: 'discord-button-emoji' }}>{emoji}</Twemoji>}
3637
{children}
3738
{type === 'link' && <OutboundLinkIcon />}
3839
</button>

0 commit comments

Comments
 (0)