fix(reactions): use dark mode from setting

This commit is contained in:
kolaente 2024-03-12 16:43:53 +01:00
parent aa840286fd
commit 7558879d99
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

@ -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>