This commit is contained in:
kakkokari-gtyih 2025-05-04 19:32:44 +09:00
parent 095a47d63b
commit 1d3d70f760
1 changed files with 5 additions and 5 deletions

View File

@ -6,10 +6,10 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div
:class="$style.root"
:style="tickerColorsRef"
:style="tickerColors"
>
<img :class="$style.icon" :src="tickerInfoRef.iconUrl"/>
<div :class="$style.name">{{ tickerInfoRef.name }}</div>
<img :class="$style.icon" :src="tickerInfo.iconUrl"/>
<div :class="$style.name">{{ tickerInfo.name }}</div>
</div>
</template>
@ -20,8 +20,8 @@ import type { MkInstanceTickerProps } from '@/components/MkInstanceTicker.impl.j
const props = defineProps<MkInstanceTickerProps>();
const tickerInfoRef = computed(() => getTickerInfo(props));
const tickerColorsRef = computed(() => getTickerColors(tickerInfoRef.value));
const tickerInfo = computed(() => getTickerInfo(props));
const tickerColors = computed(() => getTickerColors(tickerInfo.value));
</script>
<style lang="scss" module>