[Neue] Handle emoji within custom font (#5449)
* Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Fix a few more emoji locations * Couple more * No throw
This commit is contained in:
@@ -118,7 +118,11 @@ function ModerationDetailsDialogInner({
|
||||
: _(msg`The author of this thread has hidden this reply.`)
|
||||
} else if (modcause.type === 'label') {
|
||||
name = desc.name
|
||||
description = desc.description
|
||||
description = (
|
||||
<Text emoji style={[t.atoms.text, a.text_md, a.leading_snug]}>
|
||||
{desc.description}
|
||||
</Text>
|
||||
)
|
||||
} else {
|
||||
// should never happen
|
||||
name = ''
|
||||
@@ -127,7 +131,7 @@ function ModerationDetailsDialogInner({
|
||||
|
||||
return (
|
||||
<Dialog.ScrollableInner label={_(msg`Moderation details`)}>
|
||||
<Text style={[t.atoms.text, a.text_2xl, a.font_bold, a.mb_sm]}>
|
||||
<Text emoji style={[t.atoms.text, a.text_2xl, a.font_bold, a.mb_sm]}>
|
||||
{name}
|
||||
</Text>
|
||||
<Text style={[t.atoms.text, a.text_md, a.leading_snug]}>
|
||||
|
||||
Reference in New Issue
Block a user