fix: render action button in the card only when actionButton.child is present (#9064)
Co-authored-by: Praveen Kumar <praveenkumar@Praveens-MacBook-Pro.local>
This commit is contained in:
parent
f51823c24b
commit
4631805924
|
@ -152,12 +152,14 @@ export function Card({
|
||||||
{learnMore.text}
|
{learnMore.text}
|
||||||
</LinkComponent>
|
</LinkComponent>
|
||||||
)}
|
)}
|
||||||
<button
|
{actionButton?.child && (
|
||||||
className="text-default hover:text-emphasis p-0 text-xs font-normal"
|
<button
|
||||||
color="minimal"
|
className="text-default hover:text-emphasis p-0 text-xs font-normal"
|
||||||
onClick={actionButton?.onClick}>
|
color="minimal"
|
||||||
{actionButton?.child}
|
onClick={actionButton?.onClick}>
|
||||||
</button>
|
{actionButton?.child}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user