MCPcopy Create free account
hub / github.com/EsperoTech/yaade / handleSubmit

Function handleSubmit

client/src/components/basicModal/BasicModal.tsx:42–46  ·  view source on GitHub ↗
(e: FormEvent)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected