(e: FormEvent)
| 40 | hideButtonBar, |
| 41 | }) => { |
| 42 | function handleSubmit(e: FormEvent) { |
| 43 | e.preventDefault(); |
| 44 | if (isButtonDisabled) return; |
| 45 | onClick(); |
| 46 | } |
| 47 | |
| 48 | const secondaryBtnText = secondaryButtonText ?? 'Close'; |
| 49 | const onSecondaryBtnClick = onSecondaryButtonClick ?? onClose; |
nothing calls this directly
no outgoing calls
no test coverage detected