From 5d94eabff6dc0cc2e60941696fd5551a30bcc757 Mon Sep 17 00:00:00 2001 From: Piotrek Tomczewski Date: Fri, 20 Jan 2023 20:26:18 +0100 Subject: [PATCH] feat: Use Twemoji in emoji picker (#1351) --- components/publish/PublishEmojiPicker.client.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/publish/PublishEmojiPicker.client.vue b/components/publish/PublishEmojiPicker.client.vue index 4312a36ff..e75850edf 100644 --- a/components/publish/PublishEmojiPicker.client.vue +++ b/components/publish/PublishEmojiPicker.client.vue @@ -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, })