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