ui - cleanup view users tab

This commit is contained in:
Ishaan Jaff 2024-05-08 17:34:44 -07:00
parent 08d37e1b0e
commit 081e8732dc

View file

@ -157,13 +157,11 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({
<CreateUser userID={userID} accessToken={accessToken} teams={teams}/> <CreateUser userID={userID} accessToken={accessToken} teams={teams}/>
<Card className="w-full mx-auto flex-auto overflow-y-auto max-h-[80vh] mb-4"> <Card className="w-full mx-auto flex-auto overflow-y-auto max-h-[80vh] mb-4">
<div className="mb-4 mt-1"> <div className="mb-4 mt-1">
<Text><b>Key Owners: </b> Users on LiteLLM that created API Keys. Automatically tracked by LiteLLM</Text> <Text>These are Users on LiteLLM that created API Keys. Automatically tracked by LiteLLM</Text>
</div> </div>
<TabGroup> <TabGroup>
<TabList variant="line" defaultValue="1">
<Tab value="1">Key Owners</Tab>
</TabList>
<TabPanels> <TabPanels>
<TabPanel> <TabPanel>
@ -189,7 +187,7 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({
? user.models ? user.models
: "All Models"} : "All Models"}
</TableCell> </TableCell>
<TableCell>{user.spend ? user.spend : 0}</TableCell> <TableCell>{user.spend ? user.spend?.toFixed(2) : 0}</TableCell>
<TableCell> <TableCell>
{user.max_budget ? user.max_budget : "Unlimited"} {user.max_budget ? user.max_budget : "Unlimited"}
</TableCell> </TableCell>