MCPcopy Create free account
hub / github.com/code100x/cms / onClose

Function onClose

src/hooks/useModal.tsx:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 };
12
13 const onClose = () => {
14 const currentDialog = ref.current;
15 if (currentDialog) {
16 currentDialog.close();
17 }
18 };
19
20 return { ref, onOpen, onClose };
21};

Callers 6

NewPayoutDialogFunction · 0.85
NewPostDialogFunction · 0.85
CommandMenuFunction · 0.85
onSubmitFunction · 0.85
handleConfirmFunction · 0.85
handleSubmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected