Add OrganizationSwitcher to header

Lets users switch between orgs (e.g. STTIL Solutions, Gaboro DME)
directly from the top bar without going into account settings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Kisa 2026-05-29 13:15:37 -04:00
parent ec2cd24bd7
commit d4e5187350

View file

@ -1,5 +1,5 @@
import { useState, useCallback, useRef } from "react";
import { SignIn, UserButton, useAuth } from "@clerk/react";
import { SignIn, UserButton, OrganizationSwitcher, useAuth } from "@clerk/react";
import { ThemeProvider } from "./ThemeProvider";
import Sidebar from "./components/Sidebar";
import StatCard from "./components/StatCard";
@ -95,6 +95,7 @@ function AppInner() {
<div className="flex items-center gap-[10px]">
<ThemeToggle />
<CSVExport records={records} batchId={batchId} />
<OrganizationSwitcher hidePersonal />
<UserButton />
</div>
</header>