From 2a9ae7a48f5887773f2a40ead9e04dd5f9113795 Mon Sep 17 00:00:00 2001 From: TimBryanDev Date: Mon, 18 Dec 2023 16:17:45 +0000 Subject: [PATCH] :adhesive_bandage: only show close button if we have a close action --- lib/src/components/modal/ModalHeader.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/components/modal/ModalHeader.tsx b/lib/src/components/modal/ModalHeader.tsx index 0f4d74195..3c7d522d9 100644 --- a/lib/src/components/modal/ModalHeader.tsx +++ b/lib/src/components/modal/ModalHeader.tsx @@ -17,7 +17,9 @@ export function ModalHeader({ {navigationItems} - + {typeof onCloseClick === "function" ? ( + + ) : null} ); }