Skip to content

Commit 4c59af3

Browse files
fix(ui): Add warning for organization-wide settings
1 parent 94f5411 commit 4c59af3

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

apps/sim/ee/data-retention/components/data-retention-settings.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import { useEffect, useState } from 'react'
44
import { createLogger } from '@sim/logger'
55
import { toError } from '@sim/utils/errors'
6+
import { Info } from 'lucide-react'
67
import { Button, Combobox, toast } from '@/components/emcn'
8+
79
import { useSession } from '@/lib/auth/auth-client'
810
import { isBillingEnabled } from '@/lib/core/config/feature-flags'
911
import { getUserRole } from '@/lib/workspaces/organization/utils'
@@ -169,10 +171,11 @@ export function DataRetentionSettings() {
169171

170172
return (
171173
<div className='flex flex-col gap-8'>
174+
<div className='flex items-center gap-2 rounded-lg border border-[var(--border)] bg-[var(--surface-2)] px-2.5 py-1.5'>
175+
<Info className='h-3.5 w-3.5 flex-shrink-0 text-[var(--text-muted)]' />
176+
<p className='text-[12px] text-[var(--text-muted)]'>Applies organization-wide</p>
177+
</div>
172178
<section>
173-
<h3 className='mb-4 font-medium text-[15px] text-[var(--text-primary)]'>
174-
Retention Periods
175-
</h3>
176179
<div className='flex flex-col gap-5'>
177180
<SettingRow
178181
label='Log retention'

apps/sim/ee/whitelabeling/components/whitelabeling-settings.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useEffect, useState } from 'react'
44
import { createLogger } from '@sim/logger'
55
import { toError } from '@sim/utils/errors'
6-
import { Loader2, X } from 'lucide-react'
6+
import { Info, Loader2, X } from 'lucide-react'
77
import Image from 'next/image'
88
import { useParams } from 'next/navigation'
99
import { Button, Input, Label, Skeleton, toast } from '@/components/emcn'
@@ -318,6 +318,10 @@ export function WhitelabelingSettings() {
318318

319319
return (
320320
<div className='flex flex-col gap-8'>
321+
<div className='flex items-center gap-2 rounded-lg border border-[var(--border)] bg-[var(--surface-2)] px-2.5 py-1.5'>
322+
<Info className='h-3.5 w-3.5 flex-shrink-0 text-[var(--text-muted)]' />
323+
<p className='text-[12px] text-[var(--text-muted)]'>Applies organization-wide</p>
324+
</div>
321325
<section>
322326
<SectionTitle>Brand Identity</SectionTitle>
323327
<div className='flex flex-col gap-5'>

0 commit comments

Comments
 (0)