From ee1196f061200a9c069ba34556c4cb169f16ed1b Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 26 Mar 2026 11:26:38 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20pass=20onOpenOrgSettings=20to=20UserMenu?= =?UTF-8?q?=20=E2=80=94=20no=20more=20page=20navigation=20for=20org=20sett?= =?UTF-8?q?ings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dashboard/Sidebar.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/dashboard/Sidebar.tsx b/components/dashboard/Sidebar.tsx index e365f53..f65c63c 100644 --- a/components/dashboard/Sidebar.tsx +++ b/components/dashboard/Sidebar.tsx @@ -379,12 +379,13 @@ interface SidebarContentProps { orgs: OrganizationMember[] onSwitchOrganization: (orgId: string | null) => Promise openSettings: () => void + openOrgSettings: () => void } function SidebarContent({ isMobile, collapsed, siteId, sites, canEdit, pendingHref, onNavigate, onMobileClose, onExpand, onCollapse, onToggle, - wasCollapsed, pickerOpenCallbackRef, auth, orgs, onSwitchOrganization, openSettings, + wasCollapsed, pickerOpenCallbackRef, auth, orgs, onSwitchOrganization, openSettings, openOrgSettings, }: SidebarContentProps) { const router = useRouter() const c = isMobile ? false : collapsed @@ -464,6 +465,7 @@ function SidebarContent({ onCreateOrganization={() => router.push('/onboarding')} allowPersonalOrganization={false} onOpenSettings={openSettings} + onOpenOrgSettings={openOrgSettings} compact anchor="right" > @@ -565,6 +567,7 @@ export default function Sidebar({ orgs={orgs} onSwitchOrganization={handleSwitchOrganization} openSettings={() => openUnifiedSettings({ context: 'account', tab: 'profile' })} + openOrgSettings={() => openUnifiedSettings({ context: 'workspace', tab: 'general' })} /> @@ -608,6 +611,7 @@ export default function Sidebar({ orgs={orgs} onSwitchOrganization={handleSwitchOrganization} openSettings={() => openUnifiedSettings({ context: 'account', tab: 'profile' })} + openOrgSettings={() => openUnifiedSettings({ context: 'workspace', tab: 'general' })} />