chore(ui): improve ui consistency

This commit is contained in:
liyasthomas
2021-12-24 08:12:35 +05:30
parent 1eb9eb911e
commit 10cb433e80
17 changed files with 90 additions and 48 deletions

View File

@@ -16,15 +16,23 @@
</span>
</template>
<NuxtLink
v-for="(locale, index) in $i18n.locales.filter(
({ code }) => code !== $i18n.locale
)"
:key="`locale-${String(index)}`"
v-for="(locale, index) in $i18n.locales"
:key="`locale-${index}`"
:to="switchLocalePath(locale.code)"
@click="$refs.language.tippy().hide()"
@click="language.tippy().hide()"
>
<SmartItem :label="locale.name" />
<SmartItem
:label="locale.name"
:active-info-icon="$i18n.locale === locale.code"
:info-icon="$i18n.locale === locale.code ? 'done' : null"
/>
</NuxtLink>
</tippy>
</span>
</template>
<script setup lang="ts">
import { ref } from "@nuxtjs/composition-api"
const language = ref<any | null>(null)
</script>