Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 1529799

Browse files
committed
Fix custom category
1 parent a07a9fc commit 1529799

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build": "npm run check && rollup -c",
1313
"release": "npm run build && node scripts/prepare-release.js",
1414
"precommit": "npm run lint && npm run test && npm run check",
15-
"postinstall": "npm install --prefix docs",
15+
"prebuild:docs": "npm install --prefix docs",
1616
"check": "tsc --noEmit",
1717
"check:watch": "tsc --noEmit --watch",
1818
"clean": "rimraf dist",

src/views/CustomEmojiCategory.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { EmojiContainer } from './EmojiContainer';
44
import { BaseEmojiCategory } from './BaseEmojiCategory';
55
import { LazyLoader } from '../LazyLoader';
66
import { Category } from '../types';
7+
import { categoryIcons } from '../icons';
78

89
type CustomEmojiCategoryOptions = {
910
category: Category;
@@ -31,7 +32,8 @@ export class CustomEmojiCategory extends BaseEmojiCategory {
3132
return super.render({
3233
category: this.category,
3334
emojis: this.emojiContainer,
34-
emojiCount: this.customEmojis.length
35+
emojiCount: this.customEmojis.length,
36+
icon: categoryIcons[this.category.key]
3537
});
3638
}
3739
}

0 commit comments

Comments
 (0)