diff --git a/stubs/inertia-react/resources/js/Components/ValidationErrors.jsx b/stubs/inertia-react/resources/js/Components/ValidationErrors.jsx deleted file mode 100644 index 7153aaa43..000000000 --- a/stubs/inertia-react/resources/js/Components/ValidationErrors.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; - -export default function ValidationErrors({ errors }) { - return ( - Object.keys(errors).length > 0 && ( -
-
Whoops! Something went wrong.
- - -
- ) - ); -} diff --git a/stubs/inertia-react/resources/js/Pages/Auth/ConfirmPassword.jsx b/stubs/inertia-react/resources/js/Pages/Auth/ConfirmPassword.jsx index 4f76330da..2f46a267a 100644 --- a/stubs/inertia-react/resources/js/Pages/Auth/ConfirmPassword.jsx +++ b/stubs/inertia-react/resources/js/Pages/Auth/ConfirmPassword.jsx @@ -2,8 +2,8 @@ import React, { useEffect } from 'react'; import Button from '@/Components/Button'; import Guest from '@/Layouts/Guest'; import Input from '@/Components/Input'; +import InputError from '@/Components/InputError'; import Label from '@/Components/Label'; -import ValidationErrors from '@/Components/ValidationErrors'; import { Head, useForm } from '@inertiajs/inertia-react'; export default function ConfirmPassword() { @@ -35,8 +35,6 @@ export default function ConfirmPassword() { This is a secure area of the application. Please confirm your password before continuing. - -
diff --git a/stubs/inertia-react/resources/js/Pages/Auth/ForgotPassword.jsx b/stubs/inertia-react/resources/js/Pages/Auth/ForgotPassword.jsx index cfd760380..89c6c1d07 100644 --- a/stubs/inertia-react/resources/js/Pages/Auth/ForgotPassword.jsx +++ b/stubs/inertia-react/resources/js/Pages/Auth/ForgotPassword.jsx @@ -2,7 +2,7 @@ import React from 'react'; import Button from '@/Components/Button'; import Guest from '@/Layouts/Guest'; import Input from '@/Components/Input'; -import ValidationErrors from '@/Components/ValidationErrors'; +import InputError from '@/Components/InputError'; import { Head, useForm } from '@inertiajs/inertia-react'; export default function ForgotPassword({ status }) { @@ -31,8 +31,6 @@ export default function ForgotPassword({ status }) { {status &&
{status}
} - - + +