diff --git a/resources/js/layouts/settings/Layout.vue b/resources/js/layouts/settings/Layout.vue index 3a630774..194e8d72 100644 --- a/resources/js/layouts/settings/Layout.vue +++ b/resources/js/layouts/settings/Layout.vue @@ -3,9 +3,9 @@ import Heading from '@/components/Heading.vue'; import { Button } from '@/components/ui/button'; import { Separator } from '@/components/ui/separator'; import { toUrl, urlIsActive } from '@/lib/utils'; -import { appearance } from '@/routes'; +import { edit as editAppearance } from '@/routes/appearance'; import { edit as editPassword } from '@/routes/password'; -import { edit } from '@/routes/profile'; +import { edit as editProfile } from '@/routes/profile'; import { show } from '@/routes/two-factor'; import { type NavItem } from '@/types'; import { Link } from '@inertiajs/vue3'; @@ -13,7 +13,7 @@ import { Link } from '@inertiajs/vue3'; const sidebarNavItems: NavItem[] = [ { title: 'Profile', - href: edit(), + href: editProfile(), }, { title: 'Password', @@ -25,7 +25,7 @@ const sidebarNavItems: NavItem[] = [ }, { title: 'Appearance', - href: appearance(), + href: editAppearance(), }, ]; diff --git a/resources/js/pages/settings/Appearance.vue b/resources/js/pages/settings/Appearance.vue index 85dd4648..226d6eab 100644 --- a/resources/js/pages/settings/Appearance.vue +++ b/resources/js/pages/settings/Appearance.vue @@ -7,12 +7,12 @@ import { type BreadcrumbItem } from '@/types'; import AppLayout from '@/layouts/AppLayout.vue'; import SettingsLayout from '@/layouts/settings/Layout.vue'; -import { appearance } from '@/routes'; +import { edit } from '@/routes/appearance'; const breadcrumbItems: BreadcrumbItem[] = [ { title: 'Appearance settings', - href: appearance().url, + href: edit().url, }, ]; diff --git a/routes/settings.php b/routes/settings.php index 3ab23c35..df011866 100644 --- a/routes/settings.php +++ b/routes/settings.php @@ -21,7 +21,7 @@ Route::get('settings/appearance', function () { return Inertia::render('settings/Appearance'); - })->name('appearance'); + })->name('appearance.edit'); Route::get('settings/two-factor', [TwoFactorAuthenticationController::class, 'show']) ->name('two-factor.show');