Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove the badge for now

Maidul Islam30c21d39c329
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
index 8114cf6443..ca17af0c78 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
@@ -9,7 +9,6 @@ import {
PencilIcon,
PlusIcon,
RefreshCwIcon,
- RotateCwIcon,
TrashIcon
} from "lucide-react";
@@ -134,11 +133,11 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
};
return (
- <div className="rounded-lg border border-border bg-container">
- <div className="flex items-center justify-between border-b border-border px-4 py-3">
+ <div className="border-border bg-container rounded-lg border">
+ <div className="border-border flex items-center justify-between border-b px-4 py-3">
<div>
<h3 className="text-lg font-medium">Accounts</h3>
- <p className="text-sm text-muted">
+ <p className="text-muted text-sm">
Accounts associated with this resource that can be used for access
</p>
</div>
@@ -170,7 +169,7 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
<UnstableTableBody>
{isPending && (
<UnstableTableRow>
- <UnstableTableCell colSpan={2} className="text-center text-muted">
+ <UnstableTableCell colSpan={2} className="text-muted text-center">
Loading accounts...
</UnstableTableCell>
</UnstableTableRow>
@@ -211,11 +210,6 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
<div className="flex flex-col">
<div className="flex items-center gap-3">
<span className="font-medium">{account.name}</span>
- {rotationEnabled && (
- <Badge variant="success" isSquare>
- <RotateCwIcon />
- </Badge>
- )}
{lastRotatedAt && (
<Tooltip>
<TooltipTrigger asChild>
@@ -238,14 +232,9 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
)}
</div>
{account.description && (
- <Tooltip>
- <TooltipTrigger asChild>
- <span className="line-clamp-1 text-xs text-muted">
- {account.description}
- </span>
- </TooltipTrigger>
- <TooltipContent>{account.description}</TooltipContent>
- </Tooltip>
+ <span className="text-muted line-clamp-1 text-xs">
+ {account.description}
+ </span>
)}
</div>
</UnstableTableCell>