mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
fix: wrap server display names with Twemoji for cross-platform emoji rendering
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
getInsufficientBalanceError,
|
||||
getFlagEmoji,
|
||||
} from '../utils/subscriptionHelpers';
|
||||
import Twemoji from 'react-twemoji';
|
||||
|
||||
/** Isolated countdown so 1s interval doesn't re-render the whole page */
|
||||
const CountdownTimer = memo(function CountdownTimer({
|
||||
@@ -980,7 +981,9 @@ export default function Subscription() {
|
||||
{server.country_code && (
|
||||
<span className="text-xs">{getFlagEmoji(server.country_code)}</span>
|
||||
)}
|
||||
{server.name}
|
||||
<Twemoji options={{ className: 'twemoji', folder: 'svg', ext: '.svg' }}>
|
||||
{server.name}
|
||||
</Twemoji>
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user