Skip to content
Merged
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
4 changes: 2 additions & 2 deletions resources/js/components/delete-user.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { destroy } from '@/actions/App/Http/Controllers/Settings/ProfileController';
import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController';
import HeadingSmall from '@/components/heading-small';
import InputError from '@/components/input-error';
import { Button } from '@/components/ui/button';
Expand Down Expand Up @@ -32,7 +32,7 @@ export default function DeleteUser() {
</DialogDescription>

<Form
{...destroy.form()}
{...ProfileController.destroy.form()}
options={{
preserveScroll: true,
}}
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/confirm-password.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { store } from '@/actions/App/Http/Controllers/Auth/ConfirmablePasswordController';
import ConfirmablePasswordController from '@/actions/App/Http/Controllers/Auth/ConfirmablePasswordController';
import InputError from '@/components/input-error';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
Expand All @@ -15,7 +15,7 @@ export default function ConfirmPassword() {
>
<Head title="Confirm password" />

<Form {...store.form()} resetOnSuccess={['password']}>
<Form {...ConfirmablePasswordController.store.form()} resetOnSuccess={['password']}>
{({ processing, errors }) => (
<div className="space-y-6">
<div className="grid gap-2">
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/forgot-password.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Components
import { store } from '@/actions/App/Http/Controllers/Auth/PasswordResetLinkController';
import PasswordResetLinkController from '@/actions/App/Http/Controllers/Auth/PasswordResetLinkController';
import { login } from '@/routes';
import { Form, Head } from '@inertiajs/react';
import { LoaderCircle } from 'lucide-react';
Expand All @@ -19,7 +19,7 @@ export default function ForgotPassword({ status }: { status?: string }) {
{status && <div className="mb-4 text-center text-sm font-medium text-green-600">{status}</div>}

<div className="space-y-6">
<Form {...store.form()}>
<Form {...PasswordResetLinkController.store.form()}>
{({ processing, errors }) => (
<>
<div className="grid gap-2">
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/login.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { store } from '@/actions/App/Http/Controllers/Auth/AuthenticatedSessionController';
import AuthenticatedSessionController from '@/actions/App/Http/Controllers/Auth/AuthenticatedSessionController';
import InputError from '@/components/input-error';
import TextLink from '@/components/text-link';
import { Button } from '@/components/ui/button';
Expand All @@ -21,7 +21,7 @@ export default function Login({ status, canResetPassword }: LoginProps) {
<AuthLayout title="Log in to your account" description="Enter your email and password below to log in">
<Head title="Log in" />

<Form {...store.form()} resetOnSuccess={['password']} className="flex flex-col gap-6">
<Form {...AuthenticatedSessionController.store.form()} resetOnSuccess={['password']} className="flex flex-col gap-6">
{({ processing, errors }) => (
<>
<div className="grid gap-6">
Expand Down
9 changes: 7 additions & 2 deletions resources/js/pages/auth/register.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { store } from '@/actions/App/Http/Controllers/Auth/RegisteredUserController';
import RegisteredUserController from '@/actions/App/Http/Controllers/Auth/RegisteredUserController';
import { login } from '@/routes';
import { Form, Head } from '@inertiajs/react';
import { LoaderCircle } from 'lucide-react';
Expand All @@ -14,7 +14,12 @@ export default function Register() {
return (
<AuthLayout title="Create an account" description="Enter your details below to create your account">
<Head title="Register" />
<Form {...store.form()} resetOnSuccess={['password', 'password_confirmation']} disableWhileProcessing className="flex flex-col gap-6">
<Form
{...RegisteredUserController.store.form()}
resetOnSuccess={['password', 'password_confirmation']}
disableWhileProcessing
className="flex flex-col gap-6"
>
{({ processing, errors }) => (
<>
<div className="grid gap-6">
Expand Down
8 changes: 6 additions & 2 deletions resources/js/pages/auth/reset-password.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { store } from '@/actions/App/Http/Controllers/Auth/NewPasswordController';
import NewPasswordController from '@/actions/App/Http/Controllers/Auth/NewPasswordController';
import { Form, Head } from '@inertiajs/react';
import { LoaderCircle } from 'lucide-react';

Expand All @@ -18,7 +18,11 @@ export default function ResetPassword({ token, email }: ResetPasswordProps) {
<AuthLayout title="Reset password" description="Please enter your new password below">
<Head title="Reset password" />

<Form {...store.form()} transform={(data) => ({ ...data, token, email })} resetOnSuccess={['password', 'password_confirmation']}>
<Form
{...NewPasswordController.store.form()}
transform={(data) => ({ ...data, token, email })}
resetOnSuccess={['password', 'password_confirmation']}
>
{({ processing, errors }) => (
<div className="grid gap-6">
<div className="grid gap-2">
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/verify-email.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Components
import { store } from '@/actions/App/Http/Controllers/Auth/EmailVerificationNotificationController';
import EmailVerificationNotificationController from '@/actions/App/Http/Controllers/Auth/EmailVerificationNotificationController';
import { logout } from '@/routes';
import { Form, Head } from '@inertiajs/react';
import { LoaderCircle } from 'lucide-react';
Expand All @@ -19,7 +19,7 @@ export default function VerifyEmail({ status }: { status?: string }) {
</div>
)}

<Form {...store.form()} className="space-y-6 text-center">
<Form {...EmailVerificationNotificationController.store.form()} className="space-y-6 text-center">
{({ processing }) => (
<>
<Button disabled={processing} variant="secondary">
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/settings/password.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { update } from '@/actions/App/Http/Controllers/Settings/PasswordController';
import PasswordController from '@/actions/App/Http/Controllers/Settings/PasswordController';
import InputError from '@/components/input-error';
import AppLayout from '@/layouts/app-layout';
import SettingsLayout from '@/layouts/settings/layout';
Expand Down Expand Up @@ -33,7 +33,7 @@ export default function Password() {
<HeadingSmall title="Update password" description="Ensure your account is using a long, random password to stay secure" />

<Form
{...update.form()}
{...PasswordController.update.form()}
options={{
preserveScroll: true,
}}
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/settings/profile.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { update } from '@/actions/App/Http/Controllers/Settings/ProfileController';
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';
Expand Down Expand Up @@ -33,7 +33,7 @@ export default function Profile({ mustVerifyEmail, status }: { mustVerifyEmail:
<HeadingSmall title="Profile information" description="Update your name and email address" />

<Form
{...update.form()}
{...ProfileController.update.form()}
options={{
preserveScroll: true,
}}
Expand Down