Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions resources/js/layouts/settings/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import Heading from '@/components/heading';
import { Button } from '@/components/ui/button';
import { Separator } from '@/components/ui/separator';
import { cn } 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 { type NavItem } from '@/types';
import { Link } from '@inertiajs/react';
import { type PropsWithChildren } from 'react';

const sidebarNavItems: NavItem[] = [
{
title: 'Profile',
href: edit(),
href: editProfile(),
icon: null,
},
{
Expand All @@ -22,7 +22,7 @@ const sidebarNavItems: NavItem[] = [
},
{
title: 'Appearance',
href: appearance(),
href: editAppearance(),
icon: null,
},
];
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/settings/appearance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { type BreadcrumbItem } from '@/types';

import AppLayout from '@/layouts/app-layout';
import SettingsLayout from '@/layouts/settings/layout';
import { appearance } from '@/routes';
import { edit } from '@/routes/appearance';

const breadcrumbs: BreadcrumbItem[] = [
{
title: 'Appearance settings',
href: appearance().url,
href: edit().url,
},
];

Expand Down
2 changes: 1 addition & 1 deletion routes/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@

Route::get('settings/appearance', function () {
return Inertia::render('settings/appearance');
})->name('appearance');
})->name('appearance.edit');
});