diff --git a/components/settings/unified/UnifiedSettingsModal.tsx b/components/settings/unified/UnifiedSettingsModal.tsx index 3ced645..ccb7662 100644 --- a/components/settings/unified/UnifiedSettingsModal.tsx +++ b/components/settings/unified/UnifiedSettingsModal.tsx @@ -2,7 +2,7 @@ import { useState, useCallback, useEffect } from 'react' import { AnimatePresence, motion } from 'framer-motion' -import { X, GearSix, Buildings, User, CaretDown } from '@phosphor-icons/react' +import { X, GearSix, Buildings, User } from '@phosphor-icons/react' import { useUnifiedSettings } from '@/lib/unified-settings-context' import { useAuth } from '@/lib/auth/context' import { useSite } from '@/lib/swr/dashboard' @@ -65,28 +65,18 @@ const ACCOUNT_TABS: TabDef[] = [ function ContextSwitcher({ active, onChange, - sites, - activeSiteId, - onSiteChange, + activeSiteDomain, }: { active: SettingsContext onChange: (ctx: SettingsContext) => void - sites: Site[] - activeSiteId: string | null - onSiteChange: (id: string) => void + activeSiteDomain: string | null }) { - const [siteDropdownOpen, setSiteDropdownOpen] = useState(false) - const activeSite = sites.find(s => s.id === activeSiteId) - return (
- {/* Site button with dropdown */} -
+ {/* Site button — locked to current site, no dropdown */} + {activeSiteDomain && ( - - - {siteDropdownOpen && active === 'site' && sites.length > 1 && ( - - {sites.map(site => ( - - ))} - - )} - -
+ )}