refactor
This commit is contained in:
parent
c88f5f5195
commit
2ddedd0ce6
9 changed files with 15 additions and 19 deletions
|
|
@ -22,6 +22,7 @@ import * as Misskey from 'misskey-js';
|
|||
import { inject, watch, ref } from 'vue';
|
||||
import XReaction from '@/components/MkReactionsViewer.reaction.vue';
|
||||
import { prefer } from '@/preferences.js';
|
||||
import { DI } from '@/di.js';
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
note: Misskey.entities.Note;
|
||||
|
|
@ -30,7 +31,7 @@ const props = withDefaults(defineProps<{
|
|||
maxNumber: Infinity,
|
||||
});
|
||||
|
||||
const mock = inject<boolean>('mock', false);
|
||||
const mock = inject(DI.mock, false);
|
||||
|
||||
const emit = defineEmits<{
|
||||
(ev: 'mockUpdateMyReaction', emoji: string, delta: number): void;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue