diff --git a/Client/src/Pages/Settings/index.css b/Client/src/Pages/Settings/index.css index 1e48dcddf..4517f3738 100644 --- a/Client/src/Pages/Settings/index.css +++ b/Client/src/Pages/Settings/index.css @@ -1,18 +1,24 @@ -.edit-profile-form, .delete-profile-form{ - width: inherit; +.edit-profile-form, +.edit-password-form, +.delete-profile-form { + width: inherit; } -.edit-profile-form__wrapper, .delete-profile-form__wrapper{ - width: 90%; - - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: flex-start; +.edit-profile-form__wrapper, +.delete-profile-form__wrapper, +.edit-password-form__wrapper { + width: 90%; + + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: flex-start; } -.edit-profile-form__wrapper:not(:first-of-type){ - margin-top: 40px; +.edit-profile-form__wrapper:not(:first-of-type), +.edit-password-form__wrapper:not(:first-of-type) { + margin-top: 40px; +} +.edit-profile-form__wrapper input, +.edit-password-form__wrapper input { + font-size: 13px; + padding: 10px; } -.edit-profile-form__wrapper input{ - font-size: 13px; - padding: 10px; -} \ No newline at end of file diff --git a/Client/src/Pages/Settings/index.jsx b/Client/src/Pages/Settings/index.jsx index 747402a37..fe4e6126d 100644 --- a/Client/src/Pages/Settings/index.jsx +++ b/Client/src/Pages/Settings/index.jsx @@ -20,6 +20,30 @@ import ButtonSpinner from "../../Components/ButtonSpinner"; import Button from "../../Components/Button"; const tabList = ["Profile", "Password", "Team"]; +const profileConfig = { + firstName: { + id: "edit-first-name", + label: "First name", + type: "input", + }, + lastName: { + id: "edit-last-name", + label: "Last name", + type: "input", + }, + email: { + id: "edit-email", + label: "Email", + description: "After updating, you'll receive a confirmation email.", + type: "input", + }, + photo: { + id: "edit-photo", + label: "Your photo", + description: "This photo will be displayed in your profile page.", + type: "photo", + }, +}; const Settings = () => { //(tab) 0 - Profile @@ -95,159 +119,91 @@ const Settings = () => { sx={{ padding: "0", marginTop: theme.spacing(6.25), width: "100%" }} >