Skip to content

Commit

Permalink
Merge pull request #1334 from Bynder/fix/GC-2905-Friendly-warning-mod…
Browse files Browse the repository at this point in the history
…al-cross-does-nothing

🩹 GC-2905 "Friendly warning" modal cross does nothing
  • Loading branch information
timbryandev authored Dec 19, 2023
2 parents e20584a + 2a9ae7a commit 556748c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/components/modal/ModalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export function ModalHeader({
</div>

{navigationItems}
<CloseButton onClick={onCloseClick} />
{typeof onCloseClick === "function" ? (
<CloseButton onClick={onCloseClick} />
) : null}
</div>
);
}
Expand Down

0 comments on commit 556748c

Please sign in to comment.