diff --git a/src/modules/integration-picker/IntegrationPicker.tsx b/src/modules/integration-picker/IntegrationPicker.tsx index 1b9e899..3beef05 100644 --- a/src/modules/integration-picker/IntegrationPicker.tsx +++ b/src/modules/integration-picker/IntegrationPicker.tsx @@ -93,10 +93,7 @@ export const IntegrationPicker: React.FC = ({ glassFooter footer={ connectionState.success ? ( - onClose?.()} - showFooterLinks={showFooterLinks} - /> + ) : ( void; + onClose?: () => void; showFooterLinks?: boolean; } const SuccessCardFooter: React.FC = ({ showFooterLinks = true, onClose }) => { + const hasFooterLinks = showFooterLinks; + const hasClose = Boolean(onClose); + + if (!hasFooterLinks && !hasClose) { + return null; + } + return ( - - {showFooterLinks && } - - - - - - - + + {hasFooterLinks && } + {hasClose && ( + + + + + + + + )} ); };