File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { Callout } from "@/components/ui/callout" ;
2
+ import { FiAlertTriangle } from "react-icons/fi" ;
2
3
3
4
export function ErrorCallout ( {
4
5
errorTitle,
@@ -12,7 +13,7 @@ export function ErrorCallout({
12
13
< Callout
13
14
className = "mt-4"
14
15
title = { errorTitle || "Page not found" }
15
- icon = "alert"
16
+ icon = { < FiAlertTriangle className = "text-red-500 h-5 w-5" /> }
16
17
type = "danger"
17
18
>
18
19
{ errorMsg }
Original file line number Diff line number Diff line change 1
1
import { cn } from "@/lib/utils" ;
2
2
3
3
interface CalloutProps {
4
- icon ?: string ;
4
+ icon ?: React . ReactNode ;
5
5
children ?: React . ReactNode ;
6
6
type ?: "default" | "warning" | "danger" | "notice" ;
7
7
className ?: string ;
@@ -29,8 +29,10 @@ export function Callout({
29
29
{ ...props }
30
30
>
31
31
{ 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
+ ) }
34
36
{ children }
35
37
</ div >
36
38
</ div >
You can’t perform that action at this time.
0 commit comments