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:
parent
ec2cd24bd7
commit
d4e5187350
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue