diff --git a/apps/remix/app/components/general/admin-global-settings-section.tsx b/apps/remix/app/components/general/admin-global-settings-section.tsx
index 5f21e7900..760684077 100644
--- a/apps/remix/app/components/general/admin-global-settings-section.tsx
+++ b/apps/remix/app/components/general/admin-global-settings-section.tsx
@@ -5,6 +5,7 @@ import { msg } from '@lingui/core/macro';
import { useLingui } from '@lingui/react';
import { Trans } from '@lingui/react/macro';
import type { OrganisationGlobalSettings, TeamGlobalSettings } from '@prisma/client';
+import type { ReactNode } from 'react';
import { DetailsCard, DetailsValue } from '~/components/general/admin-details';
@@ -25,38 +26,72 @@ const emailSettingsKeys = Object.keys(EMAIL_SETTINGS_LABELS) as (keyof TDocument
type AdminGlobalSettingsSectionProps = {
settings: TeamGlobalSettings | OrganisationGlobalSettings | null;
isTeam?: boolean;
+ /** When viewing a team, the parent organisation settings the team inherits from. */
+ inheritedSettings?: OrganisationGlobalSettings | null;
};
-export const AdminGlobalSettingsSection = ({ settings, isTeam = false }: AdminGlobalSettingsSectionProps) => {
+export const AdminGlobalSettingsSection = ({
+ settings,
+ isTeam = false,
+ inheritedSettings,
+}: AdminGlobalSettingsSectionProps) => {
const { _ } = useLingui();
- const notSetLabel = isTeam ?
+
{subtext}
: null} +
-
-
+
+
+
+
+