diff --git a/resources/js/components/NavUser.vue b/resources/js/components/NavUser.vue index c31cd283..fd9c8dc8 100644 --- a/resources/js/components/NavUser.vue +++ b/resources/js/components/NavUser.vue @@ -2,13 +2,12 @@ import UserInfo from '@/components/UserInfo.vue'; import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from '@/components/ui/dropdown-menu'; import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from '@/components/ui/sidebar'; -import { type User } from '@/types'; import { usePage } from '@inertiajs/vue3'; import { ChevronsUpDown } from 'lucide-vue-next'; import UserMenuContent from './UserMenuContent.vue'; const page = usePage(); -const user = page.props.auth.user as User; +const user = page.props.auth.user; const { isMobile, state } = useSidebar(); diff --git a/resources/js/pages/settings/Profile.vue b/resources/js/pages/settings/Profile.vue index eadec3b0..80d66112 100644 --- a/resources/js/pages/settings/Profile.vue +++ b/resources/js/pages/settings/Profile.vue @@ -9,7 +9,7 @@ import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import AppLayout from '@/layouts/AppLayout.vue'; import SettingsLayout from '@/layouts/settings/Layout.vue'; -import { type BreadcrumbItem, type User } from '@/types'; +import { type BreadcrumbItem } from '@/types'; interface Props { mustVerifyEmail: boolean; @@ -26,7 +26,7 @@ const breadcrumbItems: BreadcrumbItem[] = [ ]; const page = usePage(); -const user = page.props.auth.user as User; +const user = page.props.auth.user;