From c1807f4d4beafd94d52b080fc39dd9db1dbddbbf Mon Sep 17 00:00:00 2001 From: herrmannplatz Date: Thu, 21 Aug 2025 22:53:12 +0200 Subject: [PATCH] Remove obsolete page props cast --- resources/js/components/NavUser.vue | 3 +-- resources/js/pages/settings/Profile.vue | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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;