diff --git a/web/src/components/card/EmptyCard.tsx b/web/src/components/card/EmptyCard.tsx index 8d6b67a68..00b22d197 100644 --- a/web/src/components/card/EmptyCard.tsx +++ b/web/src/components/card/EmptyCard.tsx @@ -8,6 +8,7 @@ type EmptyCardProps = { className?: string; icon: React.ReactNode; title: string; + titleHeading?: boolean; description?: string; buttonText?: string; link?: string; @@ -16,14 +17,23 @@ export function EmptyCard({ className, icon, title, + titleHeading = true, description, buttonText, link, }: EmptyCardProps) { + let TitleComponent; + + if (titleHeading) { + TitleComponent = {title}; + } else { + TitleComponent =
{title}
; + } + return (
{icon} - {title} + {TitleComponent} {description && (
{description}
)} diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx index 9e015dfe4..70067ff5c 100644 --- a/web/src/views/events/EventView.tsx +++ b/web/src/views/events/EventView.tsx @@ -762,8 +762,9 @@ function DetectionReview({ {!loading && currentItems?.length === 0 && ( } />