MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / _getActiveMenu

Function _getActiveMenu

client/src/components/Sidebar.jsx:43–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 };
42
43 const _getActiveMenu = () => {
44 return window.location.pathname.split("/")[1];
45 };
46
47 const pathMenu = _getActiveMenu();
48 const isDashboardActive = pathMenu === "" || window.location.pathname.indexOf("dashboard") > -1;

Callers 1

SidebarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected