mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(user_info_view.tsx): fix linting errors
This commit is contained in:
parent
b5761bd975
commit
837db180dd
1 changed files with 5 additions and 5 deletions
|
@ -203,14 +203,14 @@ export default function UserInfoView({ userId, onClose, accessToken, userRole, o
|
||||||
<Card>
|
<Card>
|
||||||
<Text>Teams</Text>
|
<Text>Teams</Text>
|
||||||
<div className="mt-2">
|
<div className="mt-2">
|
||||||
<Text>{userData.teams.length} teams</Text>
|
<Text>{userData.teams?.length || 0} teams</Text>
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
<Text>API Keys</Text>
|
<Text>API Keys</Text>
|
||||||
<div className="mt-2">
|
<div className="mt-2">
|
||||||
<Text>{userData.keys.length} keys</Text>
|
<Text>{userData.keys?.length || 0} keys</Text>
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
@ -248,8 +248,8 @@ export default function UserInfoView({ userId, onClose, accessToken, userRole, o
|
||||||
<div>
|
<div>
|
||||||
<Text className="font-medium">Teams</Text>
|
<Text className="font-medium">Teams</Text>
|
||||||
<div className="flex flex-wrap gap-2 mt-1">
|
<div className="flex flex-wrap gap-2 mt-1">
|
||||||
{userData.teams.length > 0 ? (
|
{userData.teams?.length && userData.teams?.length > 0 ? (
|
||||||
userData.teams.map((team, index) => (
|
userData.teams?.map((team, index) => (
|
||||||
<span
|
<span
|
||||||
key={index}
|
key={index}
|
||||||
className="px-2 py-1 bg-blue-100 rounded text-xs"
|
className="px-2 py-1 bg-blue-100 rounded text-xs"
|
||||||
|
@ -266,7 +266,7 @@ export default function UserInfoView({ userId, onClose, accessToken, userRole, o
|
||||||
<div>
|
<div>
|
||||||
<Text className="font-medium">API Keys</Text>
|
<Text className="font-medium">API Keys</Text>
|
||||||
<div className="flex flex-wrap gap-2 mt-1">
|
<div className="flex flex-wrap gap-2 mt-1">
|
||||||
{userData.keys.length > 0 ? (
|
{userData.keys?.length && userData.keys?.length > 0 ? (
|
||||||
userData.keys.map((key, index) => (
|
userData.keys.map((key, index) => (
|
||||||
<span
|
<span
|
||||||
key={index}
|
key={index}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue