Skip to content

Commit

Permalink
Pull in upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
kazlauskis committed Oct 14, 2024
2 parents ae0a138 + 1a1496d commit 0d27581
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "uk.ac.ceh.irecord.st.helena",
"title": "iRecord St Helena App",
"description": "iRecord mobile application.",
"version": "6.1.2",
"version": "6.1.3",
"homepage": "https://irecordsthelena.edu.sh/",
"scripts": {
"prepare": "husky",
Expand Down
5 changes: 4 additions & 1 deletion src/User/Login/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ const LoginMain = ({ onSubmit }: Props) => {
</h2>

<form onSubmit={handleSubmit(onSubmit)}>
{/* Fake onSubmit on Enter */}
<input type="submit" className="hidden" />

<div className="rounded-list">
<ControlledInput
control={control}
Expand Down Expand Up @@ -78,7 +81,7 @@ const LoginMain = ({ onSubmit }: Props) => {
<Button
className={clsx('mx-auto mt-7', !formState.isValid && 'opacity-50')}
color="primary"
type="submit"
onPress={() => handleSubmit(onSubmit)()}
>
Sign In
</Button>
Expand Down
7 changes: 5 additions & 2 deletions src/User/Register/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ const RegisterMain = ({ onSubmit }: Props) => {
<T>Create a free account</T>
</h1>

<form onSubmit={handleSubmit(onSubmit)} className="mt-8">
<form className="mt-8" onSubmit={handleSubmit(onSubmit)}>
{/* Fake onSubmit on Enter */}
<input type="submit" className="hidden" />

<div className="rounded-list">
<ControlledInput
control={control}
Expand Down Expand Up @@ -96,7 +99,7 @@ const RegisterMain = ({ onSubmit }: Props) => {
!formState.isValid && 'opacity-50'
)}
color="primary"
type="submit"
onPress={() => handleSubmit(onSubmit)()}
>
Sign Up
</Button>
Expand Down
5 changes: 4 additions & 1 deletion src/User/Reset/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const ResetMain = ({ onSubmit }: Props) => {
</h2>

<form onSubmit={handleSubmit(onSubmit)}>
{/* Fake onSubmit on Enter */}
<input type="submit" className="hidden" />

<div className="rounded-list">
<ControlledInput
control={control}
Expand All @@ -42,7 +45,7 @@ const ResetMain = ({ onSubmit }: Props) => {
<Button
className={clsx('mx-auto my-8', !formState.isValid && 'opacity-50')}
color="primary"
type="submit"
onPress={() => handleSubmit(onSubmit)()}
>
Reset
</Button>
Expand Down

0 comments on commit 0d27581

Please sign in to comment.