mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
(ui) fix color on audit logs table
This commit is contained in:
parent
3351f0513e
commit
d8687b5d43
1 changed files with 1 additions and 8 deletions
|
|
@ -400,16 +400,9 @@ export type AuditLogEntry = {
|
|||
|
||||
|
||||
const getActionBadge = (action: string) => {
|
||||
const actionColors = {
|
||||
created: "blue",
|
||||
updated: "slate",
|
||||
deleted: "red",
|
||||
rotated: "amber",
|
||||
} as const;
|
||||
|
||||
return (
|
||||
<Badge
|
||||
color={actionColors[action as keyof typeof actionColors] || "gray"}
|
||||
color="gray"
|
||||
className="flex items-center gap-1"
|
||||
>
|
||||
<span className="whitespace-nowrap text-xs">{action}</span>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue