forked from phoenix/litellm-mirror
build(ui): add compiled ui to proxy
This commit is contained in:
parent
4067d4f1e5
commit
4e9210906b
37 changed files with 79 additions and 114 deletions
|
@ -144,7 +144,7 @@ const Team: React.FC<TeamProps> = ({
|
|||
<TableBody>
|
||||
{teams && teams.length > 0
|
||||
? teams.map((team: any) => (
|
||||
<TableRow>
|
||||
<TableRow key={team.team_id}>
|
||||
<TableCell>{team["team_alias"]}</TableCell>
|
||||
<TableCell>{team["spend"]}</TableCell>
|
||||
<TableCell>
|
||||
|
@ -232,13 +232,14 @@ const Team: React.FC<TeamProps> = ({
|
|||
<Col numColSpan={1}>
|
||||
<Title level={4}>Team Members</Title>
|
||||
<Paragraph>
|
||||
If you belong to multiple teams, this setting controls which teams'
|
||||
If you belong to multiple teams, this setting controls which teams
|
||||
members you see.
|
||||
</Paragraph>
|
||||
{teams && teams.length > 0 ? (
|
||||
<Select defaultValue="0">
|
||||
{teams.map((team: any, index) => (
|
||||
<SelectItem
|
||||
key={index}
|
||||
value={String(index)}
|
||||
onClick={() => {
|
||||
setSelectedTeam(team);
|
||||
|
@ -267,21 +268,23 @@ const Team: React.FC<TeamProps> = ({
|
|||
|
||||
<TableBody>
|
||||
{selectedTeam
|
||||
? selectedTeam["members_with_roles"].map((member: any) => (
|
||||
<TableRow>
|
||||
<TableCell>
|
||||
{member["user_email"]
|
||||
? member["user_email"]
|
||||
: member["user_id"]
|
||||
? member["user_id"]
|
||||
: null}
|
||||
</TableCell>
|
||||
<TableCell>{member["role"]}</TableCell>
|
||||
<TableCell>
|
||||
<Icon icon={CogIcon} size="sm" />
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))
|
||||
? selectedTeam["members_with_roles"].map(
|
||||
(member: any, index: number) => (
|
||||
<TableRow key={index}>
|
||||
<TableCell>
|
||||
{member["user_email"]
|
||||
? member["user_email"]
|
||||
: member["user_id"]
|
||||
? member["user_id"]
|
||||
: null}
|
||||
</TableCell>
|
||||
<TableCell>{member["role"]}</TableCell>
|
||||
<TableCell>
|
||||
<Icon icon={CogIcon} size="sm" />
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
)
|
||||
)
|
||||
: null}
|
||||
</TableBody>
|
||||
</Table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue