This commit is contained in:
Henry Jameson 2019-06-08 17:15:42 +03:00
parent 8872b4802e
commit 0a778160cc
3 changed files with 78 additions and 63 deletions

View file

@ -37,9 +37,8 @@ const EmojiInput = {
return false
}
return take(matchedSuggestions, 5)
.map(({ displayText, imageUrl, replacement }, index) => ({
displayText,
replacement,
.map(({ imageUrl, ...rest }, index) => ({
...rest,
// eslint-disable-next-line camelcase
img: imageUrl || '',
highlighted: index === this.highlighted