Compare commits
3 commits
cbd4b2ae33
...
5cd9e76977
Author | SHA1 | Date | |
---|---|---|---|
5cd9e76977 | |||
47e9fb0e61 | |||
68c00c34e3 |
3 changed files with 5 additions and 2 deletions
|
@ -98,7 +98,8 @@ function RenderEmoticonElement({
|
|||
isUsingTwemoji() ? <img
|
||||
className={css.EmoticonImg}
|
||||
src={getEmojiUrl(element.key)}
|
||||
alt={element.shortcode}
|
||||
alt={element.key}
|
||||
title={element.shortcode}
|
||||
/> : element.key
|
||||
)}
|
||||
{children}
|
||||
|
|
|
@ -283,7 +283,8 @@ const NativeEmoji = (emoji: IEmoji) =>
|
|||
loading="lazy"
|
||||
className={css.EmoticonImg}
|
||||
src={getEmojiUrl(emoji.unicode)}
|
||||
alt={emoji.shortcode}
|
||||
alt={emoji.unicode}
|
||||
title={emoji.shortcode}
|
||||
/> : emoji.unicode;
|
||||
|
||||
export function EmojiItem({
|
||||
|
|
|
@ -46,6 +46,7 @@ const textToEmojifyJSX = (text: string): (string | JSX.Element)[] =>
|
|||
return <span key={pushIndex} className={css.EmoticonBase}>{
|
||||
isUsingTwemoji() ? <img
|
||||
className={className}
|
||||
alt={char}
|
||||
title={title}
|
||||
src={getEmojiUrl(char)}
|
||||
/> : <span
|
||||
|
|
Loading…
Reference in a new issue