|
1 | | -import InputError from '@/components/input-error'; |
2 | | -import AppLayout from '@/layouts/app-layout'; |
3 | | -import SettingsLayout from '@/layouts/settings/layout'; |
4 | | -import { type BreadcrumbItem } from '@/types'; |
5 | 1 | import { Transition } from '@headlessui/react'; |
6 | | -import { Head, useForm } from '@inertiajs/react'; |
| 2 | +import { useForm } from '@inertiajs/react'; |
7 | 3 | import { FormEventHandler, useRef } from 'react'; |
8 | 4 |
|
9 | 5 | import HeadingSmall from '@/components/heading-small'; |
| 6 | +import InputError from '@/components/input-error'; |
10 | 7 | import { Button } from '@/components/ui/button'; |
11 | 8 | import { Input } from '@/components/ui/input'; |
12 | 9 | import { Label } from '@/components/ui/label'; |
| 10 | +import AppLayout from '@/layouts/app-layout'; |
| 11 | +import SettingsLayout from '@/layouts/settings/layout'; |
| 12 | +import { type BreadcrumbItem } from '@/types'; |
13 | 13 |
|
14 | 14 | const breadcrumbs: BreadcrumbItem[] = [ |
15 | 15 | { |
16 | 16 | title: 'Password settings', |
17 | | - href: '/settings/password', |
| 17 | + href: route('password.edit'), |
18 | 18 | }, |
19 | 19 | ]; |
20 | 20 |
|
@@ -50,8 +50,6 @@ export default function Password() { |
50 | 50 |
|
51 | 51 | return ( |
52 | 52 | <AppLayout breadcrumbs={breadcrumbs}> |
53 | | - <Head title="Profile settings" /> |
54 | | - |
55 | 53 | <SettingsLayout> |
56 | 54 | <div className="space-y-6"> |
57 | 55 | <HeadingSmall title="Update password" description="Ensure your account is using a long, random password to stay secure" /> |
|
0 commit comments