MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / handleSubmit

Function handleSubmit

frontend/src/components/collections/CollectionDialog.tsx:27–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 const closeButtonRef = useRef<HTMLButtonElement>(null)
26
27 const handleSubmit = () => {
28 if (!collectionName.trim()) return
29 onSubmit(collectionName)
30 setCollectionName('')
31 }
32
33 if (!isOpen && collectionName !== '') {
34 setCollectionName('')

Callers 1

CollectionDialogFunction · 0.70

Calls 1

onSubmitFunction · 0.50

Tested by

no test coverage detected