MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / onClickDialog

Function onClickDialog

apps/baseai.dev/src/components/MobileNavigation.tsx:84–99  ·  view source on GitHub ↗
(event: React.MouseEvent<HTMLDivElement>)

Source from the content-addressed store, hash-verified

82 }, [isOpen]);
83
84 function onClickDialog(event: React.MouseEvent<HTMLDivElement>) {
85 if (!(event.target instanceof HTMLElement)) {
86 return;
87 }
88
89 let link = event.target.closest('a');
90 if (
91 link &&
92 link.pathname + link.search + link.hash ===
93 window.location.pathname +
94 window.location.search +
95 window.location.hash
96 ) {
97 close();
98 }
99 }
100
101 return (
102 <Transition show={isOpen} as={Fragment}>

Callers

nothing calls this directly

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected