MCPcopy Create free account
hub / github.com/bridge-codes/bridge / enter

Function enter

www/src/components/NewCode.tsx:42–53  ·  view source on GitHub ↗
(e, item, content)

Source from the content-addressed store, hash-verified

40 //
41 //
42 const enter = (e, item, content) => {
43 // the the top & left position of the item
44 const top = item.getBoundingClientRect().top + window.scrollY;
45 const left = item.getBoundingClientRect().left;
46 console.log(top, left)
47 setPosition({
48 top: top + 36,
49 left: left,
50 });
51 setInner(content);
52 console.log("changing content to :>>>", content)
53 }
54
55 const leave = () => {
56 setPosition({

Callers 1

NewCustomCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected