From 1a1496d055624af963371d3542f2d326e01c87f5 Mon Sep 17 00:00:00 2001 From: Karolis Kazlauskis Date: Mon, 14 Oct 2024 14:09:30 +0300 Subject: [PATCH] Update user page buttons --- package-lock.json | 4 ++-- package.json | 2 +- src/User/Login/Main.tsx | 5 ++++- src/User/Register/Main.tsx | 7 +++++-- src/User/Reset/Main.tsx | 5 ++++- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index daa2c792..d8ea5818 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "irecord-app", - "version": "6.1.1", + "version": "6.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "irecord-app", - "version": "6.1.1", + "version": "6.1.3", "dependencies": { "@capacitor-community/camera-preview": "6.0.0", "@capacitor/android": "^6.1.2", diff --git a/package.json b/package.json index f47fbbda..94b4d5a1 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "id": "uk.ac.ceh.irecord", "title": "iRecord App", "description": "iRecord mobile application.", - "version": "6.1.2", + "version": "6.1.3", "homepage": "https://irecord.org.uk", "scripts": { "prepare": "husky", diff --git a/src/User/Login/Main.tsx b/src/User/Login/Main.tsx index 05166da5..27c2d842 100644 --- a/src/User/Login/Main.tsx +++ b/src/User/Login/Main.tsx @@ -43,6 +43,9 @@ const LoginMain = ({ onSubmit }: Props) => {
+ {/* Fake onSubmit on Enter */} + +
{ diff --git a/src/User/Register/Main.tsx b/src/User/Register/Main.tsx index 079171e3..91fdc1e2 100644 --- a/src/User/Register/Main.tsx +++ b/src/User/Register/Main.tsx @@ -40,7 +40,10 @@ const RegisterMain = ({ onSubmit }: Props) => { Create a free account - + + {/* Fake onSubmit on Enter */} + +
{ !formState.isValid && 'opacity-50' )} color="primary" - type="submit" + onPress={() => handleSubmit(onSubmit)()} > Sign Up diff --git a/src/User/Reset/Main.tsx b/src/User/Reset/Main.tsx index 51999bb7..847291a8 100644 --- a/src/User/Reset/Main.tsx +++ b/src/User/Reset/Main.tsx @@ -29,6 +29,9 @@ const ResetMain = ({ onSubmit }: Props) => { + {/* Fake onSubmit on Enter */} + +
{