From b2c55ebd71b7000ff94536e371f891be26aa7f35 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Tue, 5 Nov 2024 08:49:04 -0800 Subject: [PATCH] ensure props aligned (#3050) * ensure props aligned * k * k --- web/src/components/ErrorCallout.tsx | 3 ++- web/src/components/ui/callout.tsx | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/web/src/components/ErrorCallout.tsx b/web/src/components/ErrorCallout.tsx index 497412d033d..3726c09e307 100644 --- a/web/src/components/ErrorCallout.tsx +++ b/web/src/components/ErrorCallout.tsx @@ -1,4 +1,5 @@ import { Callout } from "@/components/ui/callout"; +import { FiAlertTriangle } from "react-icons/fi"; export function ErrorCallout({ errorTitle, @@ -12,7 +13,7 @@ export function ErrorCallout({ } type="danger" > {errorMsg} diff --git a/web/src/components/ui/callout.tsx b/web/src/components/ui/callout.tsx index 99dbc31c900..5b45aab72ed 100644 --- a/web/src/components/ui/callout.tsx +++ b/web/src/components/ui/callout.tsx @@ -1,7 +1,7 @@ import { cn } from "@/lib/utils"; interface CalloutProps { - icon?: string; + icon?: React.ReactNode; children?: React.ReactNode; type?: "default" | "warning" | "danger" | "notice"; className?: string; @@ -29,8 +29,10 @@ export function Callout({ {...props} > {icon && {icon}} -
- {title &&
{title}
} +
+ {title && ( +
{title}
+ )} {children}