summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkTooltip.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-01 13:42:40 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-01 13:42:40 +0900
commitc823cbe63b30d622d240adb92b696d0f507d084d (patch)
tree1d2dadb135abd92e02b04281fd6224b4b1376054 /packages/frontend/src/components/MkTooltip.vue
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadmisskey-c823cbe63b30d622d240adb92b696d0f507d084d.tar.gz
misskey-c823cbe63b30d622d240adb92b696d0f507d084d.tar.bz2
misskey-c823cbe63b30d622d240adb92b696d0f507d084d.zip
refactor(frontend): remove $store
Diffstat (limited to 'packages/frontend/src/components/MkTooltip.vue')
-rw-r--r--packages/frontend/src/components/MkTooltip.vue9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/frontend/src/components/MkTooltip.vue b/packages/frontend/src/components/MkTooltip.vue
index 0b0556de39..2d34b090ed 100644
--- a/packages/frontend/src/components/MkTooltip.vue
+++ b/packages/frontend/src/components/MkTooltip.vue
@@ -1,9 +1,9 @@
<template>
<Transition
- :enter-active-class="$store.state.animation ? $style.transition_tooltip_enterActive : ''"
- :leave-active-class="$store.state.animation ? $style.transition_tooltip_leaveActive : ''"
- :enter-from-class="$store.state.animation ? $style.transition_tooltip_enterFrom : ''"
- :leave-to-class="$store.state.animation ? $style.transition_tooltip_leaveTo : ''"
+ :enter-active-class="defaultStore.state.animation ? $style.transition_tooltip_enterActive : ''"
+ :leave-active-class="defaultStore.state.animation ? $style.transition_tooltip_leaveActive : ''"
+ :enter-from-class="defaultStore.state.animation ? $style.transition_tooltip_enterFrom : ''"
+ :leave-to-class="defaultStore.state.animation ? $style.transition_tooltip_leaveTo : ''"
appear @after-leave="emit('closed')"
>
<div v-show="showing" ref="el" :class="$style.root" class="_acrylic _shadow" :style="{ zIndex, maxWidth: maxWidth + 'px' }">
@@ -19,6 +19,7 @@
import { nextTick, onMounted, onUnmounted, shallowRef } from 'vue';
import * as os from '@/os';
import { calcPopupPosition } from '@/scripts/popup-position';
+import { defaultStore } from '@/store';
const props = withDefaults(defineProps<{
showing: boolean;