From 4da33493cd82cb127f7d4ad5fd070ba1387c894c Mon Sep 17 00:00:00 2001
From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
Date: Sun, 10 May 2026 13:35:33 -0500
Subject: [PATCH] add optional onClick to EmptyCard
---
web/src/components/card/EmptyCard.tsx | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/web/src/components/card/EmptyCard.tsx b/web/src/components/card/EmptyCard.tsx
index b9943b31a4..5495a6e50c 100644
--- a/web/src/components/card/EmptyCard.tsx
+++ b/web/src/components/card/EmptyCard.tsx
@@ -12,6 +12,7 @@ type EmptyCardProps = {
description?: string;
buttonText?: string;
link?: string;
+ onClick?: () => void;
};
export function EmptyCard({
className,
@@ -21,6 +22,7 @@ export function EmptyCard({
description,
buttonText,
link,
+ onClick,
}: EmptyCardProps) {
let TitleComponent;
@@ -39,11 +41,16 @@ export function EmptyCard({
{description}
)}
- {buttonText?.length && (
-
- )}
+ {buttonText?.length &&
+ (onClick ? (
+
+ ) : (
+
+ ))}
);
}