parent
072158ee97
commit
e64e6a03dd
13 changed files with 86 additions and 18 deletions
|
@ -92,8 +92,11 @@ export const buildCustomEmojis = (customEmojis) => {
|
|||
keywords: [name],
|
||||
imageUrl: url,
|
||||
custom: true,
|
||||
customCategory: emoji.get('category'),
|
||||
});
|
||||
});
|
||||
|
||||
return emojis;
|
||||
};
|
||||
|
||||
export const categoriesFromEmojis = customEmojis => customEmojis.reduce((set, emoji) => set.add(emoji.get('category') ? `custom-${emoji.get('category')}` : 'custom'), new Set());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue