diff --git a/resources/js/components/NavMain.vue b/resources/js/components/NavMain.vue index b892d922..7cd0e71a 100644 --- a/resources/js/components/NavMain.vue +++ b/resources/js/components/NavMain.vue @@ -2,13 +2,7 @@ import { SidebarGroup, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar'; import { type SharedData } from '@/types'; import { Link, usePage } from '@inertiajs/vue3'; -import type { Component } from 'vue'; - -interface NavItem { - title: string; - url: string; - icon: Component; -} +import { type NavItem } from '@/types'; defineProps<{ items: NavItem[]; diff --git a/resources/js/layouts/settings/Layout.vue b/resources/js/layouts/settings/Layout.vue index dcedde51..f980c5c0 100644 --- a/resources/js/layouts/settings/Layout.vue +++ b/resources/js/layouts/settings/Layout.vue @@ -8,15 +8,15 @@ import { Link } from '@inertiajs/vue3'; const sidebarNavItems: NavItem[] = [ { title: 'Profile', - href: '/settings/profile', + url: '/settings/profile', }, { title: 'Password', - href: '/settings/password', + url: '/settings/password', }, { title: 'Appearance', - href: '/settings/appearance', + url: '/settings/appearance', }, ]; @@ -32,12 +32,12 @@ const currentPath = window.location.pathname;