From 1fe19aaf82c98e29c4dc67fcdfdb49f7c2da7b03 Mon Sep 17 00:00:00 2001 From: "Schwinghammer, Max" Date: Mon, 10 Jun 2024 18:16:52 +0200 Subject: [PATCH 1/2] Sign up: Fixed double tos and privacy policy consent and adapted error message styles --- src/main/web/src/App.css | 3 +- .../web/src/organisms/signup/EmailInput.tsx | 32 ++++--------------- .../web/src/organisms/signup/ErrorModal.css | 6 ---- .../web/src/organisms/signup/ErrorModal.tsx | 17 ---------- .../signup/UsernamePasswordInput.tsx | 11 ------- 5 files changed, 8 insertions(+), 61 deletions(-) delete mode 100644 src/main/web/src/organisms/signup/ErrorModal.css delete mode 100644 src/main/web/src/organisms/signup/ErrorModal.tsx diff --git a/src/main/web/src/App.css b/src/main/web/src/App.css index 9fbabf53..d08ff5ea 100644 --- a/src/main/web/src/App.css +++ b/src/main/web/src/App.css @@ -30,7 +30,6 @@ } .error, .loading { - font-size: 24px; font-weight: var(--strong-font-weight); line-height: 24px; @@ -90,7 +89,6 @@ justify-content: center; position: relative; margin-bottom: 20px; - text-decoration: none; font-size: 20px; } @@ -117,6 +115,7 @@ .alert-danger { color: var(--red); + font-weight: bold; font-size: 14px; margin-top: 10px; margin-bottom: 10px; diff --git a/src/main/web/src/organisms/signup/EmailInput.tsx b/src/main/web/src/organisms/signup/EmailInput.tsx index 732b18a7..62e4dcc1 100644 --- a/src/main/web/src/organisms/signup/EmailInput.tsx +++ b/src/main/web/src/organisms/signup/EmailInput.tsx @@ -3,7 +3,6 @@ import "./EmailInput.css"; import { Formik, Field, Form, ErrorMessage } from "formik"; import * as Yup from "yup"; import {emailVerification, googleLogin} from "../../services/AuthService"; -import ErrorModal from "./ErrorModal"; import {CredentialResponse, GoogleLogin} from "@react-oauth/google"; import {NavigateFunction, useNavigate} from "react-router-dom"; @@ -57,12 +56,7 @@ export const EmailInput = forwardRef void }>( onSuccess(); }, (error): void => { - let resMessage = - (error.response && - error.response.data && - error.response.data.message) || - error.message || - error.toString(); + let resMessage = (error.response && error.response.data && error.response.data.message) || error.message || error.toString(); if (error.message === "Request failed with status code 400") { setShowError(true); @@ -70,6 +64,7 @@ export const EmailInput = forwardRef void }>( setLoading(false); setMessage(resMessage); + setContainerHeight("560px"); } ); }; @@ -117,14 +112,7 @@ export const EmailInput = forwardRef void }>( />
- +