diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue index 7c64b479..7f4094f2 100644 --- a/src/modules/[chain]/index.vue +++ b/src/modules/[chain]/index.vue @@ -12,7 +12,7 @@ import { useParamStore, } from '@/stores'; import { onMounted, ref } from 'vue'; -import { useIndexModule } from './indexStore'; +import { useIndexModule, colorMap } from './indexStore'; import { computed } from '@vue/reactivity'; import CardStatisticsVertical from '@/components/CardStatisticsVertical.vue'; @@ -99,6 +99,10 @@ const color = computed(() => { function updateState() { walletStore.loadMyAsset() } + +function trustColor(v: string) { + return `text-${colorMap(v)}` +}