diff --git a/resources/js/components/user-menu-content.tsx b/resources/js/components/user-menu-content.tsx index 69a6755a..b61132fc 100644 --- a/resources/js/components/user-menu-content.tsx +++ b/resources/js/components/user-menu-content.tsx @@ -7,7 +7,7 @@ import { import { UserInfo } from '@/components/user-info'; import { useMobileNavigation } from '@/hooks/use-mobile-navigation'; import { logout } from '@/routes'; -import { edit } from '@/routes/profile'; +import { edit } from '@/routes/account'; import { type User } from '@/types'; import { Link, router } from '@inertiajs/react'; import { LogOut, Settings } from 'lucide-react'; diff --git a/resources/js/pages/settings/profile.tsx b/resources/js/pages/settings/profile.tsx deleted file mode 100644 index 76ab3e38..00000000 --- a/resources/js/pages/settings/profile.tsx +++ /dev/null @@ -1,148 +0,0 @@ -import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController'; -import { send } from '@/routes/verification'; -import { type BreadcrumbItem, type SharedData } from '@/types'; -import { Transition } from '@headlessui/react'; -import { Form, Head, Link, usePage } from '@inertiajs/react'; - -import DeleteUser from '@/components/delete-user'; -import HeadingSmall from '@/components/heading-small'; -import InputError from '@/components/input-error'; -import { Button } from '@/components/ui/button'; -import { Input } from '@/components/ui/input'; -import { Label } from '@/components/ui/label'; -import AppLayout from '@/layouts/app-layout'; -import SettingsLayout from '@/layouts/settings/layout'; -import { edit } from '@/routes/profile'; - -const breadcrumbs: BreadcrumbItem[] = [ - { - title: 'Profile settings', - href: edit().url, - }, -]; - -export default function Profile({ - mustVerifyEmail, - status, -}: { - mustVerifyEmail: boolean; - status?: string; -}) { - const { auth } = usePage().props; - - return ( - - - - -
- - -
- {({ processing, recentlySuccessful, errors }) => ( - <> -
- - - - - -
- -
- - - - - -
- - {mustVerifyEmail && - auth.user.email_verified_at === null && ( -
-

- Your email address is - unverified.{' '} - - Click here to resend the - verification email. - -

- - {status === - 'verification-link-sent' && ( -
- A new verification link has - been sent to your email - address. -
- )} -
- )} - -
- - - -

- Saved -

-
-
- - )} -
-
- - -
-
- ); -} diff --git a/routes/settings.php b/routes/settings.php index 1fd25a37..8d593eff 100644 --- a/routes/settings.php +++ b/routes/settings.php @@ -15,7 +15,6 @@ Route::middleware('auth')->group(function () { Route::patch('settings/profile', [ProfileController::class, 'update'])->name('profile.update'); Route::delete('settings/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); - Route::get('settings/profile', [ProfileController::class, 'edit'])->name('profile.edit'); Route::get('settings/password', [PasswordController::class, 'edit'])->name('user-password.edit'); Route::put('settings/password', [PasswordController::class, 'update'])