diff --git a/Client/src/Pages/Settings/index.css b/Client/src/Pages/Settings/index.css index 2f68ba7a3..007a63436 100644 --- a/Client/src/Pages/Settings/index.css +++ b/Client/src/Pages/Settings/index.css @@ -1,29 +1,50 @@ .edit-profile-form, .edit-password-form, -.delete-profile-form { +.delete-profile-form, +.edit-team-form { width: inherit; } .edit-profile-form__wrapper, .delete-profile-form__wrapper { width: 90%; } -.edit-password-form { - width: 100%; -} .edit-profile-form__wrapper, .delete-profile-form__wrapper, -.edit-password-form__wrapper { +.edit-password-form__wrapper, +.edit-team-form__wrapper { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; } +.edit-profile-form__wrapper h1.MuiTypography-root, +.delete-profile-form__wrapper h1.MuiTypography-root, +.edit-password-form__wrapper h1.MuiTypography-root, +.edit-team-form__wrapper h1.MuiTypography-root { + font-size: 13px; + color: var(--env-var-color-2); + font-weight: 600; +} +.edit-profile-form__wrapper p.MuiTypography-root, +.delete-profile-form__wrapper p.MuiTypography-root { + font-size: 13px; + color: var(--env-var-color-2); + opacity: 0.6; +} +#modal-delete-account, +#modal-edit-org-name { + font-size: 16px; + color: var(--env-var-color-2); + font-weight: 600; +} .edit-profile-form__wrapper:not(:first-of-type), -.edit-password-form__wrapper:not(:first-of-type) { +.edit-password-form__wrapper:not(:first-of-type), +.edit-team-form__wrapper:not(:first-of-type) { margin-top: 40px; } .edit-profile-form__wrapper input, -.edit-password-form__wrapper input { +.edit-password-form__wrapper input, +#edit-organization-name { font-size: 13px; padding: 10px; } @@ -51,3 +72,7 @@ color: var(--env-var-color-15); fill: var(--env-var-color-15) !important; } + +.edit-team-form .Mui-disabled { + color: var(--env-var-color-2) !important; +} diff --git a/Client/src/Pages/Settings/index.jsx b/Client/src/Pages/Settings/index.jsx index 367ac2805..2cb6458d2 100644 --- a/Client/src/Pages/Settings/index.jsx +++ b/Client/src/Pages/Settings/index.jsx @@ -69,6 +69,12 @@ const passwordConfig = { type: "notice", }, }; +const orgConfig = { + name: "Bluewave Labs", + isLoading: false, + isOpen: false, + newName: "", +}; const Settings = () => { //(tab) 0 - Profile @@ -114,6 +120,32 @@ const Settings = () => { const [showPassword, setShowPassword] = useState(false); + const [orgStates, setOrgStates] = useState(orgConfig); + const toggleOrgModal = (state) => { + setOrgStates((prev) => ({ + ...prev, + isOpen: state, + })); + }; + const toggleOrgLoading = (state) => { + setOrgStates((prev) => ({ + ...prev, + isLoading: state, + })); + }; + const handleRenameOrg = () => { + toggleOrgLoading(true); + + setTimeout(() => { + setOrgStates((prev) => ({ + ...prev, + name: prev.newName !== "" ? prev.newName : prev.name, + isLoading: false, + isOpen: false, + newName: "", + })); + }, 2000); + }; return ( { gap="8px" sx={{ flex: 1, marginRight: "10px" }} > - + {field.label} {field ? ( - + {field.description} ) : ( @@ -245,26 +261,10 @@ const Settings = () => {
- + Delete account - + Note that deleting your account will remove all data from our system. This is permanent and non-recoverable. @@ -330,15 +330,7 @@ const Settings = () => { gap="8px" sx={{ flex: 1, marginRight: "10px" }} > - + {field.label} @@ -386,35 +378,103 @@ const Settings = () => { )}
))} +