This repository was archived by the owner on Sep 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { EmojiContainer } from './EmojiContainer';
44import { BaseEmojiCategory } from './BaseEmojiCategory' ;
55import { LazyLoader } from '../LazyLoader' ;
66import { Category } from '../types' ;
7+ import { categoryIcons } from '../icons' ;
78
89type 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}
You can’t perform that action at this time.
0 commit comments