MCPcopy
hub / github.com/mitmproxy/mitmproxy / handleClick

Function handleClick

web/src/js/components/Header.tsx:48–51  ·  view source on GitHub ↗
(tab: Tab, e: React.MouseEvent<HTMLAnchorElement>)

Source from the content-addressed store, hash-verified

46 }, [selectedFlows, wasFlowSelected, currentTab]);
47
48 function handleClick(tab: Tab, e: React.MouseEvent<HTMLAnchorElement>) {
49 e.preventDefault();
50 dispatch(setCurrent(tab));
51 }
52
53 const ActiveMenu = tabs[currentTab];
54

Callers 1

HeaderFunction · 0.85

Calls 2

setCurrentFunction · 0.90
dispatchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…