Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 8, 2025
1 parent 8c8bb8e commit 6291f6e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions apps/dashboard/app/(app)/audit/components/table/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export const columns: Column<Data>[] = [
<div className="flex items-center gap-3 px-2">
{log.auditLog.actor.type === "user" && log.user ? (
<div className="flex items-center w-full gap-2 max-sm:m-0 max-sm:gap-1 max-sm:text-xs">
<span className="text-xs whitespace-nowrap">{`${
log.user.firstName ?? ""
} ${log.user.lastName ?? ""}`}</span>
<span className="text-xs whitespace-nowrap">{`${log.user.firstName ?? ""} ${
log.user.lastName ?? ""
}`}</span>
</div>
) : log.auditLog.actor.type === "key" ? (
<div className="flex items-center w-full gap-2 max-sm:m-0 max-sm:gap-1 max-sm:text-xs">
Expand All @@ -57,10 +57,8 @@ export const columns: Column<Data>[] = [
const eventType = getEventType(log.auditLog.event);
const badgeClassName = cn("font-mono capitalize", {
"bg-error-3 text-error-11 hover:bg-error-4": eventType === "delete",
"bg-warning-3 text-warning-11 hover:bg-warning-4":
eventType === "update",
"bg-success-3 text-success-11 hover:bg-success-4":
eventType === "create",
"bg-warning-3 text-warning-11 hover:bg-warning-4": eventType === "update",
"bg-success-3 text-success-11 hover:bg-success-4": eventType === "create",
"bg-accent-3 text-accent-11 hover:bg-accent-4": eventType === "other",
});
return (
Expand All @@ -87,9 +85,7 @@ export const columns: Column<Data>[] = [
headerClassName: "pl-1",
width: "auto",
render: (log) => (
<div className="text-current font-mono px-2 text-xs">
{log.auditLog.description}
</div>
<div className="text-current font-mono px-2 text-xs">{log.auditLog.description}</div>
),
},
];

0 comments on commit 6291f6e

Please sign in to comment.