MCPcopy Index your code
hub / github.com/code100x/cms / onOpen

Function onOpen

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

Source from the content-addressed store, hash-verified

4 const ref = useRef<HTMLDialogElement>(null);
5
6 const onOpen = () => {
7 const currentDialog = ref.current;
8 if (currentDialog) {
9 currentDialog.showModal();
10 }
11 };
12
13 const onClose = () => {
14 const currentDialog = ref.current;

Callers 1

NewPostDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected