mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
added badge
This commit is contained in:
parent
539b94ad4e
commit
948b05da86
1 changed files with 11 additions and 1 deletions
|
|
@ -284,7 +284,17 @@ export default function UserInfoView({
|
|||
<Card>
|
||||
<Text>Teams</Text>
|
||||
<div className="mt-2">
|
||||
<Text>{userData.teams?.length || 0} teams</Text>
|
||||
{userData.teams?.length && userData.teams?.length > 0 ? (
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{userData.teams?.map((team, index) => (
|
||||
<Badge key={index} color="blue">
|
||||
{team.team_alias}
|
||||
</Badge>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<Text>No teams</Text>
|
||||
)}
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue