fix: improve loading

This commit is contained in:
Anthony Fu 2022-11-24 16:57:24 +08:00
parent 70645180aa
commit dbf4362d8b
4 changed files with 22 additions and 14 deletions

View file

@ -1,13 +1,14 @@
<script setup lang="ts">
import type { Account } from 'masto'
defineProps<{
const { link = true } = defineProps<{
account: Account
link?: boolean
}>()
</script>
<template>
<NuxtLink :href="getAccountPath(account)" flex gap-1 items-center>
<NuxtLink :to="link ? getAccountPath(account) : undefined" flex gap-1 items-center>
<AccountAvatar :account="account" w-5 h-5 />
<ContentRich :content="getDisplayName(account)" :emojis="account.emojis" />
</NuxtLink>