-
-
+
+
-
+
diff --git a/apps/console/src/components/OrganizationSwitcher.tsx b/apps/console/src/components/OrganizationSwitcher.tsx
index 886c6cb48..1709fde0a 100644
--- a/apps/console/src/components/OrganizationSwitcher.tsx
+++ b/apps/console/src/components/OrganizationSwitcher.tsx
@@ -1,7 +1,7 @@
"use client";
import { useState, useEffect } from "react";
-import { ChevronsUpDown, Plus, Building } from "lucide-react";
+import { ChevronsUpDown, Plus } from "lucide-react";
import { graphql, useFragment } from "react-relay";
import { Link, useNavigate, useParams } from "react-router";
@@ -25,6 +25,7 @@ import {
OrganizationSwitcher_organizations$data,
} from "./__generated__/OrganizationSwitcher_organizations.graphql";
import { cn } from "@/lib/utils";
+import { OrganizationSwitcherSkeleton } from "./OrganizationSwitcherSkeleton";
export const organizationSwitcherFragment = graphql`
fragment OrganizationSwitcher_organizations on User {
@@ -95,20 +96,7 @@ export function OrganizationSwitcher({
};
if (!hasOrganizations) {
- return (
-
-
-
-
-
-
-
-
-
- );
+ return
;
}
return (
@@ -118,32 +106,33 @@ export function OrganizationSwitcher({
-
+
{currentOrganization ? (
) : (
-
+
)}
-
- {currentOrganization
- ? currentOrganization.name
- : "Select Organization"}
-
-
- {currentOrganization ? "Free" : "No organization selected"}
-
+ {currentOrganization ? (
+ <>
+
+ {currentOrganization.name}
+
+
+ Free
+
+ >
+ ) : (
+
+ Select Organization
+
+ )}
diff --git a/apps/console/src/components/OrganizationSwitcherSkeleton.tsx b/apps/console/src/components/OrganizationSwitcherSkeleton.tsx
index 60efbebfd..3a06b5107 100644
--- a/apps/console/src/components/OrganizationSwitcherSkeleton.tsx
+++ b/apps/console/src/components/OrganizationSwitcherSkeleton.tsx
@@ -1,7 +1,5 @@
"use client";
-import { ChevronsUpDown } from "lucide-react";
-
import {
SidebarMenu,
SidebarMenuButton,
@@ -16,16 +14,16 @@ export function OrganizationSwitcherSkeleton() {
size="lg"
className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground gap-2.5"
>
-
-