File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
web-ui/src/components/kudos Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ const KudosCard = ({ kudos }) => {
8181 }
8282 for ( const emoji in aliases ) {
8383 if ( Object . hasOwn ( aliases , emoji ) ) {
84- shortcodeMap [ emoji ] = shortcodeMap [ aliases [ emoji ] ] ;
84+ shortcodeMap [ emoji ] = shortcodeMap [ aliases [ emoji ] . alias ] ;
8585 }
8686 }
8787 setEmojiShortcodeMap ( shortcodeMap ) ;
@@ -237,11 +237,13 @@ const KudosCard = ({ kudos }) => {
237237 } else if ( emojiData . customUrl ) {
238238 // Render custom emoji using emojiUrl
239239 components . push (
240- < Emoji
241- key = { `${ match . index } -${ shortcode } ` }
242- emojiUrl = { emojiData . customUrl }
243- size = { 20 }
244- />
240+ < img src = { emojiData . customUrl } alt = { shortcode } style = { { height : '20px' , width : '20px' , fontSize : '20px' } } />
241+ // Not sure why the below doesn't work. It seems like it should according to the docs. :shrug:s
242+ // <Emoji
243+ // key={`${match.index}-${shortcode}`}
244+ // emojiUrl={emojiData.customUrl}
245+ // size={20}
246+ // />
245247 ) ;
246248 }
247249 } else {
You can’t perform that action at this time.
0 commit comments