|
|
|
|
@ -6,7 +6,6 @@ import CheckIcon from '@/material-icons/400-24px/check.svg?react';
|
|
|
|
|
import { Icon } from 'mastodon/components/icon';
|
|
|
|
|
import type { Account } from 'mastodon/models/account';
|
|
|
|
|
|
|
|
|
|
import { CustomEmojiProvider } from './emoji/context';
|
|
|
|
|
import { EmojiHTML } from './emoji/html';
|
|
|
|
|
import { useElementHandledLink } from './status/handled_link';
|
|
|
|
|
|
|
|
|
|
@ -22,7 +21,7 @@ export const AccountFields: React.FC<Pick<Account, 'fields' | 'emojis'>> = ({
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<CustomEmojiProvider emojis={emojis}>
|
|
|
|
|
<>
|
|
|
|
|
{fields.map((pair, i) => (
|
|
|
|
|
<dl key={i} className={classNames({ verified: pair.verified_at })}>
|
|
|
|
|
<EmojiHTML
|
|
|
|
|
@ -52,12 +51,13 @@ export const AccountFields: React.FC<Pick<Account, 'fields' | 'emojis'>> = ({
|
|
|
|
|
<EmojiHTML
|
|
|
|
|
as='span'
|
|
|
|
|
htmlString={pair.value_emojified}
|
|
|
|
|
extraEmojis={emojis}
|
|
|
|
|
{...htmlHandlers}
|
|
|
|
|
/>
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
))}
|
|
|
|
|
</CustomEmojiProvider>
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|