From c40a81c4eeaf533938db57730d12e2a9eec13fa7 Mon Sep 17 00:00:00 2001 From: mohit-bhandari45 Date: Tue, 11 Jun 2024 11:02:56 +0530 Subject: [PATCH] Fixed the login page --- src/components/Form.jsx | 30 +++++++++++++++--------------- src/components/Header.jsx | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/Form.jsx b/src/components/Form.jsx index 5b4f97e..8926fa5 100644 --- a/src/components/Form.jsx +++ b/src/components/Form.jsx @@ -50,15 +50,15 @@ function Form({ title, fields, type = 'login', btnClick, signInWithGoogleFun }) return ( <> -
+
- {error &&

{error}

} + {error &&

{error}

}
-

{title}

-

Please sign in to your account

+

{title}

+

Please sign in to your account

-
+
-
- - OR - +
+
+
or
+
-
+ {fields.map((element, index) => ( -
+
{type == 'login' ? 'Login' : 'Sign up'} )}
-

+

{type == 'login' ? "Don't have an account?" : 'Alrady have an account?'} {type == 'login' ? 'Sign up' : 'Login'} diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 6b7e742..181cbd2 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -44,7 +44,7 @@ function Header() { return ( -

+