(ui) fix color on audit logs table

This commit is contained in:
Ishaan Jaff 2025-06-07 15:26:47 -07:00
parent 3351f0513e
commit d8687b5d43

View file

@ -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>