From 9a1934a77ad50323e013cb8aa11a9eb80fb714fe Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Tue, 20 Aug 2024 19:39:55 -0400 Subject: [PATCH] Refactored password tab --- .../TabPanels/Account/PasswordPanel.jsx | 66 +++++++++---------- Client/src/Pages/Account/index.css | 6 -- 2 files changed, 33 insertions(+), 39 deletions(-) diff --git a/Client/src/Components/TabPanels/Account/PasswordPanel.jsx b/Client/src/Components/TabPanels/Account/PasswordPanel.jsx index 6247a57a9..602816e6c 100644 --- a/Client/src/Components/TabPanels/Account/PasswordPanel.jsx +++ b/Client/src/Components/TabPanels/Account/PasswordPanel.jsx @@ -98,16 +98,17 @@ const PasswordPanel = () => { return ( -
-
- + + Current password - + { onChange={handleChange} error={errors[idToName["edit-current-password"]]} /> -
-
- + + + New password - + { onChange={handleChange} error={errors[idToName["edit-new-password"]]} /> -
-
- + + + Confirm new password - + { onChange={handleChange} error={errors[idToName["edit-confirm-password"]]} /> -
-
- + + + -
-
); }; diff --git a/Client/src/Pages/Account/index.css b/Client/src/Pages/Account/index.css index 28a554afa..8421f56ec 100644 --- a/Client/src/Pages/Account/index.css +++ b/Client/src/Pages/Account/index.css @@ -42,17 +42,11 @@ justify-content: space-between; align-items: flex-start; } -.edit-password-form__wrapper > .MuiStack-root:not(.row-stack) { - flex-direction: column; - gap: 8px; - margin-right: 10px; -} #modal-delete-account, #modal-edit-org-name, #modal-invite-member { font-size: var(--env-var-font-size-large); } -.edit-password-form__wrapper:not(:first-of-type), .edit-team-form__wrapper:not(:first-of-type) { margin-top: var(--env-var-spacing-4); }