refactor: reformat files to require parens around params (#316)

This commit is contained in:
Dan Orlando 2023-05-18 11:44:07 -07:00 committed by GitHub
parent 91ef4872d6
commit a17b878617
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 106 additions and 106 deletions

View file

@ -42,7 +42,7 @@ function Login() {
className="mt-6"
aria-label="Login form"
method="POST"
onSubmit={handleSubmit(data => login(data))}
onSubmit={handleSubmit((data) => login(data))}
>
<div className="mb-2">
<div className="relative">

View file

@ -55,7 +55,7 @@ function Registration() {
className="mt-6"
aria-label="Registration form"
method="POST"
onSubmit={handleSubmit(data => onRegisterUserFormSubmit(data))}
onSubmit={handleSubmit((data) => onRegisterUserFormSubmit(data))}
>
<div className="mb-2">
<div className="relative">
@ -225,7 +225,7 @@ function Registration() {
return false;
}}
{...register('confirm_password', {
validate: value => value === password || 'Passwords do not match'
validate: (value) => value === password || 'Passwords do not match'
})}
aria-invalid={!!errors.confirm_password}
className="peer block w-full appearance-none rounded-t-md border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-500 focus:outline-none focus:ring-0"

View file

@ -129,7 +129,7 @@ function ResetPassword() {
return false;
}}
{...register('confirm_password', {
validate: value => value === password || 'Passwords do not match'
validate: (value) => value === password || 'Passwords do not match'
})}
aria-invalid={!!errors.confirm_password}
className="peer block w-full appearance-none rounded-t-md border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-500 focus:outline-none focus:ring-0"