refactor: move getDisplayAvatar into profile composable
This commit is contained in:
parent
8dbab14c2e
commit
10bf54b6fd
3 changed files with 33 additions and 26 deletions
|
@ -62,7 +62,7 @@ import type { GuildMemberResponse, ModalProps, UserResponse } from '~/types/inte
|
|||
import VerticalSpacer from '../UserInterface/VerticalSpacer.vue';
|
||||
import Button from '../UserInterface/Button.vue';
|
||||
|
||||
const { getDisplayName, getUsername, getPronouns, getAboutMe, getRegistrationDate, getGuildJoinDate, getFriendsSince, getUuid } = useProfile()
|
||||
const { getDisplayName, getUsername, getPronouns, getAboutMe, getRegistrationDate, getGuildJoinDate, getFriendsSince, getUserUuid } = useProfile()
|
||||
const { addFriend, fetchMe } = useApi();
|
||||
|
||||
const props = defineProps<ModalProps & {
|
||||
|
@ -81,7 +81,7 @@ const registrationDate = getRegistrationDate(props.profile)
|
|||
const joinDate = getGuildJoinDate(props.profile)
|
||||
const friendsSince = await getFriendsSince(props.profile)
|
||||
|
||||
const uuid = getUuid(props.profile)
|
||||
const uuid = getUserUuid(props.profile)
|
||||
|
||||
|
||||
function toDateString(date: Date): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue