Skip to content

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

change card to be alert

adilsond4b74e355aea
diff --git a/frontend/src/pages/project/components/AdditionalPrivilegesRemovedSection/AdditionalPrivilegesRemovedSection.tsx b/frontend/src/pages/project/components/AdditionalPrivilegesRemovedSection/AdditionalPrivilegesRemovedSection.tsx
index c9d13219a4..ab2641bafa 100644
--- a/frontend/src/pages/project/components/AdditionalPrivilegesRemovedSection/AdditionalPrivilegesRemovedSection.tsx
+++ b/frontend/src/pages/project/components/AdditionalPrivilegesRemovedSection/AdditionalPrivilegesRemovedSection.tsx
@@ -1,26 +1,26 @@
-import {
- Card,
- CardDescription,
- CardHeader,
- CardTitle,
- DocumentationLinkBadge
-} from "@app/components/v3";
+import { InfoIcon } from "lucide-react";
+
+import { Alert, AlertDescription, AlertTitle } from "@app/components/v3";
const FOLDER_ACCESS_DOCS_URL =
"https://infisical.com/docs/documentation/platform/access-controls/folder-rbac";
export const AdditionalPrivilegesRemovedSection = () => {
return (
- <Card>
- <CardHeader>
- <CardTitle>
- Additional Privileges Moved to Folder-Level Access
- <DocumentationLinkBadge href={FOLDER_ACCESS_DOCS_URL} />
- </CardTitle>
- <CardDescription>
- Folder-level grants override roles and keep working when folders are renamed or moved.
- </CardDescription>
- </CardHeader>
- </Card>
+ <Alert variant="info">
+ <InfoIcon />
+ <AlertTitle>Additional Privileges Moved to Folder-Level Access</AlertTitle>
+ <AlertDescription>
+ Folder-level grants override roles and keep working when folders are renamed or moved.{" "}
+ <a
+ href={FOLDER_ACCESS_DOCS_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="inline underline hover:opacity-80"
+ >
+ Learn more
+ </a>
+ </AlertDescription>
+ </Alert>
);
};