Scheduling infrastructure for absolutely everyone.
fix: render action button in the card only when actionButton.child is present (#9064)
Praveen Kumar D463180592453
diff --git a/packages/ui/components/card/Card.tsx b/packages/ui/components/card/Card.tsxindex 153f1325e4e..b7c0dcdb2a4 100644--- a/packages/ui/components/card/Card.tsx+++ b/packages/ui/components/card/Card.tsx@@ -152,12 +152,14 @@ export function Card({{learnMore.text}</LinkComponent>)}- <button- className="text-default hover:text-emphasis p-0 text-xs font-normal"- color="minimal"- onClick={actionButton?.onClick}>- {actionButton?.child}- </button>+ {actionButton?.child && (+ <button+ className="text-default hover:text-emphasis p-0 text-xs font-normal"+ color="minimal"+ onClick={actionButton?.onClick}>+ {actionButton?.child}+ </button>+ )}</div>)}</div>