MCPcopy Create free account
hub / github.com/enowdev/enowX-Coder / toggleProject

Function toggleProject

src/components/sidebar/SessionList.tsx:26–36  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

24 }, [activeProjectId]);
25
26 const toggleProject = (projectId: string) => {
27 setExpandedProjects((prev) => {
28 const next = new Set(prev);
29 if (next.has(projectId)) {
30 next.delete(projectId);
31 } else {
32 next.add(projectId);
33 }
34 return next;
35 });
36 };
37
38 const handleNewSession = async (e: React.MouseEvent, projectId: string) => {
39 e.stopPropagation();

Callers 1

SessionListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected