From daf65f5ddd88b28280420a3521d80a6a0c437e6a Mon Sep 17 00:00:00 2001 From: Vamsi Krishna <46787868+vamsikrishnamathala@users.noreply.github.com> Date: Mon, 22 Dec 2025 16:38:20 +0530 Subject: [PATCH] [WEB-5776]chore: updated design system for alert modal #8415 --- packages/ui/src/modals/alert-modal.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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] )} > -