fix(reactions): use dark mode from setting
This commit is contained in:
parent
aa840286fd
commit
7558879d99
|
@ -11,6 +11,7 @@ import {nextTick, onBeforeUnmount, onMounted, ref} from 'vue'
|
|||
import CustomTransition from '@/components/misc/CustomTransition.vue'
|
||||
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
|
||||
import {useAuthStore} from '@/stores/auth'
|
||||
import {useColorScheme} from '@/composables/useColorScheme'
|
||||
|
||||
const {
|
||||
entityKind,
|
||||
|
@ -23,6 +24,7 @@ const {
|
|||
const authStore = useAuthStore()
|
||||
const {t} = useI18n()
|
||||
const reactionService = new ReactionService()
|
||||
const {isDark} = useColorScheme()
|
||||
|
||||
const model = defineModel<IReactionPerEntity>()
|
||||
|
||||
|
@ -157,6 +159,7 @@ async function toggleReaction(value: string) {
|
|||
@emojiClick="detail => addReaction(detail.unicode)"
|
||||
ref="emojiPickerRef"
|
||||
data-source="/emojis.json"
|
||||
:is-dark="isDark"
|
||||
/>
|
||||
</CustomTransition>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue