feat: Use Twemoji in emoji picker (#1351)

This commit is contained in:
Piotrek Tomczewski 2023-01-20 20:26:18 +01:00 committed by GitHub
parent 55e8c6b6f7
commit 5d94eabff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ async function openEmojiPicker() {
})
}
else {
const promise = import('@emoji-mart/data').then(r => r.default)
const promise = import('@emoji-mart/data/sets/14/twitter.json').then(r => r.default)
const { Picker } = await import('emoji-mart')
picker = new Picker({
data: () => promise,
@ -28,6 +28,7 @@ async function openEmojiPicker() {
? emit('select', native)
: emit('selectCustom', { src, alt, 'data-emoji-id': name })
},
set: 'twitter',
theme: colorMode.value,
custom: customEmojisData.value,
})