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/Components/TabPanels/Account/ProfilePanel.jsx b/Client/src/Components/TabPanels/Account/ProfilePanel.jsx index e42d9f20f..7d18b48c5 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. - + { }} /> - + @@ -313,31 +317,33 @@ const ProfilePanel = () => { Object.keys(errors).length !== 0 && !errors?.picture && true } sx={{ - paddingX: "40px", + paddingX: theme.gap.large, }} /> - - - - - - Delete account - - Note that deleting your account will remove all data from our - system. This is permanent and non-recoverable. - - - setIsOpen("delete")} - /> - - - - + + + + + Delete account + + Note that deleting your account will remove all data from our + system. This is permanent and non-recoverable. + + + setIsOpen("delete")} + sx={{ width: "fit-content", mt: theme.gap.small }} + /> + {/* TODO - Update ModalPopup Component with @mui for reusability */} { }; const handleRename = () => {}; - //TODO - implement save team function - const handleSaveTeam = () => {}; - // INVITE MEMBER const [isOpen, setIsOpen] = useState(false); @@ -200,12 +197,11 @@ const TeamPanel = () => { return ( - + Organization name { }} /> - - - + + Team members @@ -307,22 +295,7 @@ const TeamPanel = () => { /> - - - - - - + .MuiStack-root:not(.row-stack), -.edit-password-form__wrapper > .MuiStack-root:not(.row-stack) { - flex-direction: column; - gap: 8px; - margin-right: 10px; -} -.edit-profile-form__wrapper p.MuiTypography-root, -.delete-profile-form__wrapper p.MuiTypography-root { - opacity: 0.6; +.account .field { + flex: 1; } #modal-delete-account, #modal-edit-org-name, #modal-invite-member { font-size: var(--env-var-font-size-large); } -.edit-profile-form__wrapper:not(:first-of-type), -.edit-password-form__wrapper:not(:first-of-type), -.edit-team-form__wrapper:not(:first-of-type) { - margin-top: var(--env-var-spacing-4); -} -.edit-team-form__wrapper.compact { - margin-top: var(--env-var-spacing-3); - justify-content: flex-start; - align-items: center; -} - -/* for testing, will remove later */ -@media only screen and (max-width: 1600px) { - .edit-profile-form__wrapper .MuiStack-root:not(.row-stack), - .edit-password-form__wrapper .MuiStack-root:not(.row-stack), - .edit-organization-form__wrapper .MuiStack-root:not(.row-stack) { - margin-right: 30px; - } -} .account .MuiStack-root:has(span.MuiTypography-root.input-error) { position: relative; @@ -87,22 +43,9 @@ top: 100%; } -.edit-profile-form__wrapper .MuiFormControl-root, -.edit-password-form__wrapper .MuiFormControl-root { - width: 100%; +.account .MuiTable-root .MuiTableBody-root .MuiTableCell-root { + color: var(--env-var-color-25); } -.edit-profile-form__wrapper .MuiStack-root:has(.MuiFormControl-root), -.edit-password-form__wrapper .MuiStack-root:has(.MuiFormControl-root) { - margin: 0; -} - -.edit-organization-form { - display: flex; - align-items: center; -} -.edit-team-form .MuiTableCell-root { - color: var(--env-var-color-25) !important; -} -.edit-team-form .MuiTableBody-root .MuiTableCell-root { - padding: var(--env-var-spacing-1-plus) var(--env-var-spacing-2) !important; +.account .MuiTableBody-root .MuiTableCell-root { + padding: var(--env-var-spacing-1-plus) var(--env-var-spacing-2); }