From fa234a7fae3c039cbc560edcc71346078050c730 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Mon, 20 Jan 2025 18:46:36 +0100 Subject: [PATCH] auth page centralized --- src/component/auth/CSignup.jsx | 4 +- src/component/auth/Forgetpwd2.jsx | 26 ++--- src/component/auth/Login2.jsx | 16 +-- src/component/auth/Signup2.jsx | 172 +++++++++++++++--------------- 4 files changed, 109 insertions(+), 109 deletions(-) diff --git a/src/component/auth/CSignup.jsx b/src/component/auth/CSignup.jsx index 9fa2746..5906a4c 100644 --- a/src/component/auth/CSignup.jsx +++ b/src/component/auth/CSignup.jsx @@ -86,10 +86,10 @@ export default function CSignup() {
-
+
-
+

MERMS Panel

diff --git a/src/component/auth/Forgetpwd2.jsx b/src/component/auth/Forgetpwd2.jsx index ccdb727..377df22 100644 --- a/src/component/auth/Forgetpwd2.jsx +++ b/src/component/auth/Forgetpwd2.jsx @@ -10,7 +10,7 @@ import { recoverPWD } from '../../services/services'; const validationSchema = Yup.object().shape({ username: Yup.string() - .email("Wrong email format") + // .email("Wrong email format") // .matches( // /^[^0-9][a-zA-Z0-9._%+-]+@[a-zA-Z]+(\.[a-zA-Z]+)+$/, // "Invalid email format" @@ -43,14 +43,14 @@ export default function Forgetpwd2() {
-
+
-
-
-
-
-

Recover Password

-

Please enter your email.

+
+
+
+
+

MERMS Panel

+

Please enter your username.

- - + +
{mutation.error && @@ -98,13 +98,13 @@ export default function Forgetpwd2() {
-
+ {/*
- {/* */} +
-
+
*/}
diff --git a/src/component/auth/Login2.jsx b/src/component/auth/Login2.jsx index ce99323..597a2c9 100644 --- a/src/component/auth/Login2.jsx +++ b/src/component/auth/Login2.jsx @@ -66,12 +66,12 @@ export default function Login() {
-
+
-
-
-
-
+
+
+
+

MERMS Panel

Welcome back, please login to your account.

@@ -135,13 +135,13 @@ export default function Login() {
-
+ {/*
- {/* */} +
-
+
*/}
diff --git a/src/component/auth/Signup2.jsx b/src/component/auth/Signup2.jsx index 6aa786b..c0953b2 100644 --- a/src/component/auth/Signup2.jsx +++ b/src/component/auth/Signup2.jsx @@ -56,104 +56,104 @@ export default function Signup2() {
-
+
-
-
-
-
-

MERMS Panel

-

Welcome, Please create your account.

- - {(props) => { - return ( - -
- {!mutation.isSuccess ? - <> -
-
- - +
+
+
+
+

MERMS Panel

+

Welcome, Please create your account.

+ + {(props) => { + return ( + +
+ {!mutation.isSuccess ? + <> +
+
+ + +
-
-
-
- - +
+
+ + +
-
-
-
- - -
-
- {/*
-
- - -
-
-
-
- - -
-
*/} -
-
- - -
- {props.errors.isChecked} -
- - {mutation.error && - <>
-

{mutation.error.message}

+
+ + +
+
+ {/*
+
+ + +
+
+
+
+ + +
+
*/} +
+
+ + +
+ {props.errors.isChecked}
- - } -
- -
- - : -
-
-

Check your email to continue.

- Home + {mutation.error && + <> +
+

{mutation.error.message}

+
+ + } + +
+ +
+ + : +
+
+

Check your email to continue.

+ Home +
+ } + +
+

Already have an account ? Sign In

- } - -
-

Already have an account ? Sign In

-
- - ); - }} - -
-
-
-
-
-
- {/* */} + + ); + }} +
+ {/*
+
+
+ +
+
+
*/}