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
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"typescript-eslint": "^8.23.0"
},
"dependencies": {
"@headlessui/react": "^2.2.0",
"@inertiajs/react": "^2.0.0",
"@radix-ui/react-avatar": "^1.1.3",
"@radix-ui/react-checkbox": "^1.1.4",
Expand Down
15 changes: 6 additions & 9 deletions resources/js/pages/settings/password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import InputError from '@/components/input-error';
import AppLayout from '@/layouts/app-layout';
import SettingsLayout from '@/layouts/settings/layout';
import { type BreadcrumbItem } from '@/types';
import { Transition } from '@headlessui/react';
import { Head, useForm } from '@inertiajs/react';
import { FormEventHandler, useRef } from 'react';

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

<Transition
show={recentlySuccessful}
enter="transition ease-in-out"
enterFrom="opacity-0"
leave="transition ease-in-out"
leaveTo="opacity-0"
<p
className={`text-sm text-neutral-600 transition-opacity duration-500 ${
recentlySuccessful ? 'opacity-100' : 'opacity-0'
}`}
>
<p className="text-sm text-neutral-600">Saved</p>
</Transition>
Saved
</p>
</div>
</form>
</div>
Expand Down
15 changes: 6 additions & 9 deletions resources/js/pages/settings/profile.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type BreadcrumbItem, type SharedData } from '@/types';
import { Transition } from '@headlessui/react';
import { Head, Link, useForm, usePage } from '@inertiajs/react';
import { FormEventHandler } from 'react';

Expand Down Expand Up @@ -107,15 +106,13 @@ export default function Profile({ mustVerifyEmail, status }: { mustVerifyEmail:
<div className="flex items-center gap-4">
<Button disabled={processing}>Save</Button>

<Transition
show={recentlySuccessful}
enter="transition ease-in-out"
enterFrom="opacity-0"
leave="transition ease-in-out"
leaveTo="opacity-0"
<p
className={`text-sm text-neutral-600 transition-opacity duration-500 ${
recentlySuccessful ? 'opacity-100' : 'opacity-0'
}`}
>
<p className="text-sm text-neutral-600">Saved</p>
</Transition>
Saved
</p>
</div>
</form>
</div>
Expand Down