Skip to content

Commit d537293

Browse files
Merge pull request #188 from laravel:feat/standardise_routes_names
Standardise routes name across starter kits
2 parents 4cdefaf + 7e80fbe commit d537293

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

resources/js/layouts/settings/Layout.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ import Heading from '@/components/Heading.vue';
33
import { Button } from '@/components/ui/button';
44
import { Separator } from '@/components/ui/separator';
55
import { toUrl, urlIsActive } from '@/lib/utils';
6-
import { appearance } from '@/routes';
6+
import { edit as editAppearance } from '@/routes/appearance';
77
import { edit as editPassword } from '@/routes/password';
8-
import { edit } from '@/routes/profile';
8+
import { edit as editProfile } from '@/routes/profile';
99
import { show } from '@/routes/two-factor';
1010
import { type NavItem } from '@/types';
1111
import { Link } from '@inertiajs/vue3';
1212
1313
const sidebarNavItems: NavItem[] = [
1414
{
1515
title: 'Profile',
16-
href: edit(),
16+
href: editProfile(),
1717
},
1818
{
1919
title: 'Password',
@@ -25,7 +25,7 @@ const sidebarNavItems: NavItem[] = [
2525
},
2626
{
2727
title: 'Appearance',
28-
href: appearance(),
28+
href: editAppearance(),
2929
},
3030
];
3131

resources/js/pages/settings/Appearance.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { type BreadcrumbItem } from '@/types';
77
88
import AppLayout from '@/layouts/AppLayout.vue';
99
import SettingsLayout from '@/layouts/settings/Layout.vue';
10-
import { appearance } from '@/routes';
10+
import { edit } from '@/routes/appearance';
1111
1212
const breadcrumbItems: BreadcrumbItem[] = [
1313
{
1414
title: 'Appearance settings',
15-
href: appearance().url,
15+
href: edit().url,
1616
},
1717
];
1818
</script>

routes/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
Route::get('settings/appearance', function () {
2323
return Inertia::render('settings/Appearance');
24-
})->name('appearance');
24+
})->name('appearance.edit');
2525

2626
Route::get('settings/two-factor', [TwoFactorAuthenticationController::class, 'show'])
2727
->name('two-factor.show');

0 commit comments

Comments
 (0)