displaying username and correct profile picture
This commit is contained in:
@@ -9,6 +9,7 @@ const colorMode = useColorMode();
|
|||||||
const toast = useToast()
|
const toast = useToast()
|
||||||
const auth = useAuth()
|
const auth = useAuth()
|
||||||
const clerk = useClerk()
|
const clerk = useClerk()
|
||||||
|
const user = useUser()
|
||||||
|
|
||||||
const currentTheme = ref<'dark' | 'system' | 'light'>(colorMode.preference as 'dark' | 'system' | 'light');
|
const currentTheme = ref<'dark' | 'system' | 'light'>(colorMode.preference as 'dark' | 'system' | 'light');
|
||||||
const showTaskCreateModal = ref(false);
|
const showTaskCreateModal = ref(false);
|
||||||
@@ -206,9 +207,8 @@ function scheduleTask(task: Task) {
|
|||||||
content: 'w-60'
|
content: 'w-60'
|
||||||
}">
|
}">
|
||||||
<UButton variant="ghost" class="flex gap-1 items-center w-full text-text">
|
<UButton variant="ghost" class="flex gap-1 items-center w-full text-text">
|
||||||
<UAvatar
|
<UAvatar :src="user.user.value?.imageUrl" />
|
||||||
src="https://avatars.githubusercontent.com/u/33062936?s=400&u=9ee792d29ebcacccdbfb5af0539aab313d6d7185&v=4" />
|
{{ user.user.value?.username }}
|
||||||
Quirin Ecker
|
|
||||||
</UButton>
|
</UButton>
|
||||||
</UDropdownMenu>
|
</UDropdownMenu>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user