diff --git a/ui/litellm-dashboard/src/app/(dashboard)/teams/TeamsView.tsx b/ui/litellm-dashboard/src/app/(dashboard)/teams/TeamsView.tsx index 26e8f13ef43..2c65175ae0b 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/teams/TeamsView.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/teams/TeamsView.tsx @@ -6,8 +6,6 @@ import { fetchTeams } from "@/components/common_components/fetch_teams"; import TeamInfoView from "@/components/team/TeamInfo"; import TeamSSOSettings from "@/components/TeamSSOSettings"; import { isAdminRole } from "@/utils/roles"; -// eslint-disable-next-line litellm-ui/no-banned-ui-imports -import { TabPanel } from "@tremor/react"; import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; import AvailableTeamsPanel from "@/components/team/available_teams"; @@ -273,57 +271,60 @@ const TeamsView: React.FC = ({ premiumUser={premiumUser} /> ) : ( - - -

- Click on “Team ID” to view team details and manage team members. -

-
-
- -
-
- + +

+ Click on “Team ID” to view team details and manage team members. +

+
+
+ +
+
+ +
-
- - {isDeleteModalOpen && ( - - )} - + {isDeleteModalOpen && ( + + )} + +
-
- - + + } + availableTeamsPanel={ - - {isAdminRole(userRole || "") && ( - - - - )} - + } + defaultTeamSettingsPanel={ + + } + /> )} {(userRole == "Admin" || userRole == "Org Admin") && ( ({ - TabGroup: ({ children, ...props }: any) =>
{children}
, - TabList: ({ children, ...props }: any) =>
{children}
, - Tab: ({ children, ...props }: any) => , - TabPanels: ({ children, ...props }: any) =>
{children}
, - Text: ({ children, ...props }: any) => {children}, - Icon: ({ onClick, ...props }: any) =>
- - {children} - + + {yourTeamsPanel} + {availableTeamsPanel} + {showDefaults && ( + + {defaultTeamSettingsPanel} + + )} + ); };