File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11import { Callout } from "@/components/ui/callout" ;
2+ import { FiAlertTriangle } from "react-icons/fi" ;
23
34export function ErrorCallout ( {
45 errorTitle,
@@ -12,7 +13,7 @@ export function ErrorCallout({
1213 < Callout
1314 className = "mt-4"
1415 title = { errorTitle || "Page not found" }
15- icon = "alert"
16+ icon = { < FiAlertTriangle className = "text-red-500 h-5 w-5" /> }
1617 type = "danger"
1718 >
1819 { errorMsg }
Original file line number Diff line number Diff line change 11import { cn } from "@/lib/utils" ;
22
33interface CalloutProps {
4- icon ?: string ;
4+ icon ?: React . ReactNode ;
55 children ?: React . ReactNode ;
66 type ?: "default" | "warning" | "danger" | "notice" ;
77 className ?: string ;
@@ -29,8 +29,10 @@ export function Callout({
2929 { ...props }
3030 >
3131 { icon && < span className = "mr-4 text-2xl" > { icon } </ span > }
32- < div >
33- { title && < div className = "font-medium mb-1" > { title } </ div > }
32+ < div className = "flex-1" >
33+ { title && (
34+ < div className = "font-medium mb-1 flex items-center" > { title } </ div >
35+ ) }
3436 { children }
3537 </ div >
3638 </ div >
You can’t perform that action at this time.
0 commit comments