diff --git a/packages/client/src/components/MkEmojiPickerDialog.vue b/packages/client/src/components/MkEmojiPickerDialog.vue index 918ee4a0d..fdec2b169 100644 --- a/packages/client/src/components/MkEmojiPickerDialog.vue +++ b/packages/client/src/components/MkEmojiPickerDialog.vue @@ -51,8 +51,8 @@ const emit = defineEmits<{ const modal = ref>(); const picker = ref>(); -function chosen(emoji: any, withRenote: boolean) { - emit('done', { reaction: emoji, withRenote: withRenote }); +function chosen(results: { reaction: string, withRenote: boolean }) { + emit('done', results); modal.value?.close(); } diff --git a/packages/client/src/scripts/reaction-picker.ts b/packages/client/src/scripts/reaction-picker.ts index cf492e2cc..82adb0bed 100644 --- a/packages/client/src/scripts/reaction-picker.ts +++ b/packages/client/src/scripts/reaction-picker.ts @@ -4,7 +4,7 @@ import { popup } from '@/os'; class ReactionPicker { private src: Ref = ref(null); private manualShowing = ref(false); - private onChosen?: (reaction: string, withRenote: boolean) => void; + private onChosen?: ({ reaction: string, withRenote: boolean }) => void; private onClosed?: () => void; constructor() { @@ -18,7 +18,7 @@ class ReactionPicker { manualShowing: this.manualShowing }, { done: results => { - this.onChosen!(results.reaction, results.withRenote); + this.onChosen!({ reaction: results.reaction, withRenote: results.withRenote }); }, close: () => { this.manualShowing.value = false;