Profile page and sidebar layouts

This commit is contained in:
Alexis
2024-05-14 11:53:20 +02:00
parent 4034104c9e
commit cd5822def4
7 changed files with 57 additions and 17 deletions

View File

@@ -0,0 +1,5 @@
<template>
<h1 class="text-2xl font-bold flex">
<slot />
</h1>
</template>

View File

@@ -14,7 +14,7 @@ defineProps<SidebarProps>()
</UiButton>
</li>
<li>
<li v-if="!isHome">
<UiTooltipProvider :delay-duration="100">
<UiTooltip>
<UiTooltipTrigger as-child>

View File

@@ -6,5 +6,6 @@ export interface MenuItem {
}
export interface SidebarProps {
menuItems: MenuItem[]
menuItems: MenuItem[],
isHome?: boolean
}

View File

@@ -43,7 +43,7 @@ async function handleLogout() {
}
function gotoProfilePage() {
router.push({ path: '/profil' })
router.push({ path: '/profile' })
}
</script>