refactor: Add badge rendering for success and failure values in TableAutoCellRender
This commit is contained in:
parent
0cc2d1efc9
commit
6d8482f829
1 changed files with 13 additions and 1 deletions
|
|
@ -30,7 +30,19 @@ export default function TableAutoCellRender({
|
|||
variant="outline"
|
||||
size="sq"
|
||||
className={cn(
|
||||
"min-w-min bg-success-background text-success-foreground hover:bg-success-background"
|
||||
"min-w-min bg-success-background text-success-foreground hover:bg-success-background",
|
||||
)}
|
||||
>
|
||||
{value}
|
||||
</Badge>
|
||||
);
|
||||
} else if (value === "failure") {
|
||||
return (
|
||||
<Badge
|
||||
variant="outline"
|
||||
size="sq"
|
||||
className={cn(
|
||||
"min-w-min bg-error-background text-error-foreground hover:bg-error-background",
|
||||
)}
|
||||
>
|
||||
{value}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue