From 0ec5e6dcde39dc1cc84edc814e48cd21a74456fe Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Tue, 20 Aug 2024 19:34:56 -0400 Subject: [PATCH] Refactored profile tab --- .../TabPanels/Account/ProfilePanel.jsx | 85 ++++++++++--------- Client/src/Pages/Account/index.css | 23 +---- 2 files changed, 49 insertions(+), 59 deletions(-) diff --git a/Client/src/Components/TabPanels/Account/ProfilePanel.jsx b/Client/src/Components/TabPanels/Account/ProfilePanel.jsx index e42d9f20f..5dc8b6840 100644 --- a/Client/src/Components/TabPanels/Account/ProfilePanel.jsx +++ b/Client/src/Components/TabPanels/Account/ProfilePanel.jsx @@ -217,11 +217,17 @@ const ProfilePanel = () => { return ( -
-
- + + + First name - + { onChange={handleChange} error={errors[idToName["edit-first-name"]]} /> -
-
- + + + Last name - + { onChange={handleChange} error={errors[idToName["edit-last-name"]]} /> -
-
- + + + Email - + This is your current email address — it cannot be changed. @@ -256,20 +262,19 @@ const ProfilePanel = () => { value={user.email} placeholder="Enter your email" autoComplete="email" - // TODO - add onChange onChange={() => logger.warn("disabled")} // error={errors[idToName["edit-email"]]} disabled={true} /> -
-
- + + + Your photo - + This photo will be displayed in your profile page. - + { }} /> -
+