From 19f0de5ded5e1a8242f4efd740b4a6b735c2b6d2 Mon Sep 17 00:00:00 2001 From: "Schwinghammer, Max" Date: Mon, 10 Jun 2024 18:18:52 +0200 Subject: [PATCH] Sign up: Fixed double tos and privacy policy consent and adapted error message styles --- .../src/organisms/signup/ErrorUsernameModal.tsx | 17 ----------------- .../organisms/signup/UsernamePasswordInput.tsx | 3 +-- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 src/main/web/src/organisms/signup/ErrorUsernameModal.tsx diff --git a/src/main/web/src/organisms/signup/ErrorUsernameModal.tsx b/src/main/web/src/organisms/signup/ErrorUsernameModal.tsx deleted file mode 100644 index 580928fe..00000000 --- a/src/main/web/src/organisms/signup/ErrorUsernameModal.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from "react"; -import './ErrorModal.css'; - -const ErrorUsernameModal = ({onClose}: any) => { - return ( -
-
-

- The username you entered is already in use! - Please try again with another username. -

-
-
- ); -}; - -export default ErrorUsernameModal; diff --git a/src/main/web/src/organisms/signup/UsernamePasswordInput.tsx b/src/main/web/src/organisms/signup/UsernamePasswordInput.tsx index b10a2fab..95024c2d 100644 --- a/src/main/web/src/organisms/signup/UsernamePasswordInput.tsx +++ b/src/main/web/src/organisms/signup/UsernamePasswordInput.tsx @@ -4,7 +4,6 @@ import {register} from "../../services/AuthService"; import {ErrorMessage, Field, Form, Formik} from "formik"; import {NavigateFunction, useNavigate} from "react-router-dom"; import './UsernamePasswordInput.css'; -import ErrorUsernameModal from "./ErrorUsernameModal"; const UsernamePasswordInput = () => { let navigate: NavigateFunction = useNavigate(); @@ -99,7 +98,7 @@ const UsernamePasswordInput = () => {
{showError && ( - setShowError(false)}/> +
{message}
)}