+
+ {
+ availableEmojis.map((pack) => (
+ // TODO (future PR?): Use the pack icon, and only use StarIC as a fallback
+ openGroup(pack.packIndex)}
+ src={StarIC}
+ key={pack.packIndex}
+ tooltip={pack.displayName}
+ tooltipPlacement="right"
+ />
+ ))
+ }
+ {
+ [
+ [0, EmojiIC, 'Smilies'],
+ [1, DogIC, 'Animals'],
+ [2, CupIC, 'Food'],
+ [3, BallIC, 'Activities'],
+ [4, PhotoIC, 'Travel'],
+ [5, BulbIC, 'Objects'],
+ [6, PeaceIC, 'Symbols'],
+ [7, FlagIC, 'Flags'],
+ ].map(([indx, ico, name]) => (
+ openGroup(availableEmojis.length + indx)}
+ key={indx}
+ src={ico}
+ tooltip={name}
+ tooltipPlacement="right"
+ />
+ ))
+ }
+
+
);
}
diff --git a/src/app/organisms/emoji-board/EmojiBoard.scss b/src/app/organisms/emoji-board/EmojiBoard.scss
index 7d68ebf3..752b074e 100644
--- a/src/app/organisms/emoji-board/EmojiBoard.scss
+++ b/src/app/organisms/emoji-board/EmojiBoard.scss
@@ -10,6 +10,10 @@
height: 400px;
width: 286px;
}
+ & > .scrollbar {
+ width: initial;
+ height: 400px;
+ }
&__nav {
@extend .cp-fx__column;
justify-content: center;
diff --git a/src/app/organisms/emoji-board/custom-emoji.js b/src/app/organisms/emoji-board/custom-emoji.js
index 650a9620..91ae5143 100644
--- a/src/app/organisms/emoji-board/custom-emoji.js
+++ b/src/app/organisms/emoji-board/custom-emoji.js
@@ -166,4 +166,6 @@ function getEmojiForCompletion(room) {
.concat(Array.from(allEmoji.values()));
}
-export { getUserImagePack, getShortcodeToEmoji, getEmojiForCompletion };
+export {
+ getUserImagePack, getShortcodeToEmoji, getRelevantPacks, getEmojiForCompletion,
+};