refactor: change Avatar component to take a single variable instead of user or profile

This commit is contained in:
Twig 2025-07-17 16:18:18 +02:00
parent d2ff4ac87c
commit e339b1df10
No known key found for this signature in database
4 changed files with 21 additions and 17 deletions

View file

@ -1,6 +1,6 @@
<template>
<NuxtLink class="user-item" :href="`/me/${user.uuid}`" tabindex="0">
<Avatar :user="props.user" class="user-avatar"/>
<Avatar :profile="props.user" class="user-avatar"/>
<span class="user-display-name">{{ getDisplayName(props.user) }}</span>
</NuxtLink>

View file

@ -1,6 +1,6 @@
<template>
<div id="profile-popup">
<Avatar :user="props.user" id="avatar"/>
<Avatar :profile="props.user" id="avatar"/>
<div id="cover-color"></div>
<div id="main-body">