diff --git a/packages/ui/src/modals/alert-modal.tsx b/packages/ui/src/modals/alert-modal.tsx index b4ea04934..9d9705732 100644 --- a/packages/ui/src/modals/alert-modal.tsx +++ b/packages/ui/src/modals/alert-modal.tsx @@ -2,8 +2,8 @@ import type { LucideIcon } from "lucide-react"; import { AlertTriangle, Info } from "lucide-react"; import React from "react"; // components -import type { TButtonVariant } from "../button"; -import { Button } from "../button"; +import type { TButtonVariant } from "@plane/propel/button"; +import { Button } from "@plane/propel/button"; import { cn } from "../utils"; import { EModalPosition, EModalWidth } from "./constants"; import { ModalCore } from "./modal-core"; @@ -28,6 +28,7 @@ type Props = { title: string; variant?: TModalVariant; width?: EModalWidth; + customIcon?: React.ReactNode; }; const VARIANT_ICONS: Record = { @@ -36,7 +37,7 @@ const VARIANT_ICONS: Record = { }; const BUTTON_VARIANTS: Record = { - danger: "danger", + danger: "error-fill", primary: "primary", }; @@ -62,6 +63,7 @@ export function AlertModalCore(props: Props) { title, variant = "danger", width = EModalWidth.XL, + customIcon, } = props; const Icon = VARIANT_ICONS[variant]; @@ -76,7 +78,7 @@ export function AlertModalCore(props: Props) { VARIANT_CLASSES[variant] )} > -