feat: add home navigation link to UserNav component for improved user accessibility

This commit is contained in:
Yoga Pangestu 2026-07-08 00:26:49 +07:00
parent b4f26c56cf
commit 5e57317d8f

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { router, usePage } from '@inertiajs/vue3';
import { LogOut, User } from '@lucide/vue';
import { Home, LogOut, User } from '@lucide/vue';
import { computed } from 'vue';
import NotificationBell from '@/components/NotificationBell.vue';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
@ -34,6 +34,9 @@ function logout() {
<template>
<div class="flex items-center gap-2">
<a href="/" class="flex size-8 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground" title="Halaman Depan">
<Home class="size-4" />
</a>
<NotificationBell />
<DropdownMenu v-if="user">
<DropdownMenuTrigger as-child>