Skip to content

Commit 40a91b0

Browse files
Update password.tsx
Remove headlessui/react dependency
1 parent 4c7318d commit 40a91b0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

resources/js/pages/settings/password.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import InputError from '@/components/input-error';
22
import AppLayout from '@/layouts/app-layout';
33
import SettingsLayout from '@/layouts/settings/layout';
44
import { type BreadcrumbItem } from '@/types';
5-
import { Transition } from '@headlessui/react';
65
import { Head, useForm } from '@inertiajs/react';
76
import { FormEventHandler, useRef } from 'react';
87

@@ -110,15 +109,13 @@ export default function Password() {
110109
<div className="flex items-center gap-4">
111110
<Button disabled={processing}>Save password</Button>
112111

113-
<Transition
114-
show={recentlySuccessful}
115-
enter="transition ease-in-out"
116-
enterFrom="opacity-0"
117-
leave="transition ease-in-out"
118-
leaveTo="opacity-0"
112+
<p
113+
className={`text-sm text-neutral-600 transition-opacity duration-500 ${
114+
recentlySuccessful ? 'opacity-100' : 'opacity-0'
115+
}`}
119116
>
120-
<p className="text-sm text-neutral-600">Saved</p>
121-
</Transition>
117+
Saved
118+
</p>
122119
</div>
123120
</form>
124121
</div>

0 commit comments

Comments
 (0)