MCPcopy Create free account
hub / github.com/coder/mux / toggleSection

Function toggleSection

src/browser/components/ProjectSidebar/ProjectSidebar.tsx:992–998  ·  view source on GitHub ↗
(projectPath: string, sectionId: string)

Source from the content-addressed store, hash-verified

990 );
991
992 const toggleSection = (projectPath: string, sectionId: string) => {
993 const key = getSectionExpandedKey(projectPath, sectionId);
994 setExpandedSections((prev) => ({
995 ...prev,
996 [key]: !prev[key],
997 }));
998 };
999
1000 const handleForkWorkspace = useCallback(
1001 async (workspaceId: string, buttonElement?: HTMLElement) => {

Callers 1

renderSectionFunction · 0.85

Calls 1

getSectionExpandedKeyFunction · 0.90

Tested by

no test coverage detected