Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: rename variants
nafees nazik59c861c695dc
diff --git a/frontend/src/components/v2/Alert/Alert.stories.tsx b/frontend/src/components/v2/Alert/Alert.stories.tsxindex 3cfc983cbb..49e8ca43c7 100644--- a/frontend/src/components/v2/Alert/Alert.stories.tsx+++ b/frontend/src/components/v2/Alert/Alert.stories.tsx@@ -29,10 +29,10 @@ export const Warning: Story = {}};-export const Destructive: Story = {+export const Danger: Story = {args: {children: <ExampleComponent />,- variant: "destructive"+ variant: "danger"}};diff --git a/frontend/src/components/v2/Alert/Alert.tsx b/frontend/src/components/v2/Alert/Alert.tsxindex 7aba947b4b..9de25193c9 100644--- a/frontend/src/components/v2/Alert/Alert.tsx+++ b/frontend/src/components/v2/Alert/Alert.tsx@@ -1,5 +1,4 @@-/* eslint-disable react/prop-types */-import * as React from "react";+import { forwardRef } from "react";import {faExclamationCircle,faExclamationTriangle,@@ -15,7 +14,7 @@ const alertVariants = cva(variants: {variant: {default: "",- destructive: "text-red border-red",+ danger: "text-red border-red",warning: "text-yellow border-yellow"}},@@ -33,17 +32,17 @@ type AlertProps = {const variantTitleMap = {default: "Info",- destructive: "Danger",+ danger: "Danger",warning: "Warning"};const variantIconMap = {default: faInfoCircle,- destructive: faExclamationCircle,+ danger: faExclamationCircle,warning: faExclamationTriangle};-const Alert = React.forwardRef<+const Alert = forwardRef<HTMLDivElement,React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants> & AlertProps>(({ className, variant, title, icon, hideTitle = false, children, ...props }, ref) => {@@ -75,7 +74,7 @@ const Alert = React.forwardRef<});Alert.displayName = "Alert";-const AlertDescription = React.forwardRef<+const AlertDescription = forwardRef<HTMLParagraphElement,React.HTMLAttributes<HTMLParagraphElement>>(({ className, ...props }, ref) => (