Merge pull request 'Sort members list' (#45) from sort-members-list into main
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

Reviewed-on: #45
Reviewed-by: SauceyRed <saucey@saucey.red>
This commit is contained in:
Twig 2025-07-18 05:34:43 +00:00
commit 232aec13a5
12 changed files with 45 additions and 27 deletions

View file

@ -26,9 +26,7 @@
<script lang="ts" setup>
const { fetchFriends } = useApi();
const friends = await fetchFriends().then((response) => {
return response.sort((a, b) => getDisplayName(a).localeCompare(getDisplayName(b)))
})
const friends = sortUsers(await fetchFriends())
const props = defineProps<{
variant: string

View file

@ -21,8 +21,6 @@
<script lang="ts" setup>
import type { UserResponse } from '~/types/interfaces';
const { fetchMembers } = useApi();
const props = defineProps<{
user: UserResponse
}>();