fix: org settings for member improvements (#12161)

pull/12132/head^2
Udit Takkar 2023-10-31 21:54:51 +05:30 committed by GitHub
parent 58ab278813
commit 0be1387d0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 11 deletions

View File

@ -164,14 +164,13 @@ const PasswordView = ({ user }: PasswordViewProps) => {
<> <>
<Meta title={t("password")} description={t("password_description")} borderInShellHeader={true} /> <Meta title={t("password")} description={t("password_description")} borderInShellHeader={true} />
{user && user.identityProvider !== IdentityProvider.CAL ? ( {user && user.identityProvider !== IdentityProvider.CAL ? (
<div> <div className="border-subtle rounded-b-xl border border-t-0 px-4 py-6 sm:px-6">
<div className="mt-6">
<h2 className="font-cal text-emphasis text-lg font-medium leading-6"> <h2 className="font-cal text-emphasis text-lg font-medium leading-6">
{t("account_managed_by_identity_provider", { {t("account_managed_by_identity_provider", {
provider: identityProviderNameMap[user.identityProvider], provider: identityProviderNameMap[user.identityProvider],
})} })}
</h2> </h2>
</div>
<p className="text-subtle mt-1 text-sm"> <p className="text-subtle mt-1 text-sm">
{t("account_managed_by_identity_provider_description", { {t("account_managed_by_identity_provider_description", {
provider: identityProviderNameMap[user.identityProvider], provider: identityProviderNameMap[user.identityProvider],
@ -180,7 +179,7 @@ const PasswordView = ({ user }: PasswordViewProps) => {
</div> </div>
) : ( ) : (
<Form form={formMethods} handleSubmit={handleSubmit}> <Form form={formMethods} handleSubmit={handleSubmit}>
<div className="border-x px-4 py-6 sm:px-6"> <div className="border-subtle border-x px-4 py-6 sm:px-6">
{formMethods.formState.errors.apiError && ( {formMethods.formState.errors.apiError && (
<div className="pb-6"> <div className="pb-6">
<Alert severity="error" message={formMethods.formState.errors.apiError?.message} /> <Alert severity="error" message={formMethods.formState.errors.apiError?.message} />

View File

@ -194,7 +194,7 @@ const OrgAppearanceView = ({
/> />
</div> </div>
) : ( ) : (
<div className="border-subtle rounded-md border p-5"> <div className="py-5">
<span className="text-default text-sm">{t("only_owner_change")}</span> <span className="text-default text-sm">{t("only_owner_change")}</span>
</div> </div>
)} )}

View File

@ -113,7 +113,7 @@ const OrgProfileView = () => {
{isOrgAdminOrOwner ? ( {isOrgAdminOrOwner ? (
<OrgProfileForm defaultValues={defaultValues} /> <OrgProfileForm defaultValues={defaultValues} />
) : ( ) : (
<div className="flex"> <div className="border-subtle flex rounded-b-md border border-t-0 px-4 py-8 sm:px-6">
<div className="flex-grow"> <div className="flex-grow">
<div> <div>
<Label className="text-emphasis">{t("org_name")}</Label> <Label className="text-emphasis">{t("org_name")}</Label>