Fix fields not having links (#38945)

This commit is contained in:
Echo 2026-05-07 17:54:19 +02:00 committed by GitHub
parent 674e2685be
commit 496d41cdce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,8 +107,13 @@ const FieldCard: FC<{
field: AccountField; field: AccountField;
}> = ({ htmlHandlers, field }) => { }> = ({ htmlHandlers, field }) => {
const intl = useIntl(); const intl = useIntl();
const { name, nameHasEmojis, value_plain, valueHasEmojis, verified_at } = const {
field; name_emojified,
nameHasEmojis,
value_emojified,
valueHasEmojis,
verified_at,
} = field;
const { wrapperRef, isLabelOverflowing, isValueOverflowing } = const { wrapperRef, isLabelOverflowing, isValueOverflowing } =
useFieldOverflow(); useFieldOverflow();
@ -131,7 +136,7 @@ const FieldCard: FC<{
)} )}
label={ label={
<FieldHTML <FieldHTML
text={name} text={name_emojified}
textHasCustomEmoji={nameHasEmojis} textHasCustomEmoji={nameHasEmojis}
className='translate' className='translate'
isOverflowing={isLabelOverflowing} isOverflowing={isLabelOverflowing}
@ -141,7 +146,7 @@ const FieldCard: FC<{
} }
value={ value={
<FieldHTML <FieldHTML
text={value_plain} text={value_emojified}
textHasCustomEmoji={valueHasEmojis} textHasCustomEmoji={valueHasEmojis}
isOverflowing={isValueOverflowing} isOverflowing={isValueOverflowing}
onOverflowClick={handleOverflowClick} onOverflowClick={handleOverflowClick}