Skip to content

Commit 46e9a0d

Browse files
committed
Standardise routes name
1 parent 08df299 commit 46e9a0d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

resources/js/layouts/settings/Layout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ 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';
88
import { edit } from '@/routes/profile';
99
import { type NavItem } from '@/types';
@@ -20,7 +20,7 @@ const sidebarNavItems: NavItem[] = [
2020
},
2121
{
2222
title: 'Appearance',
23-
href: appearance(),
23+
href: editAppearance(),
2424
},
2525
];
2626

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
@@ -20,5 +20,5 @@
2020

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

0 commit comments

Comments
 (0)