MCPcopy Create free account
hub / github.com/esengine/esengine / toggleSection

Function toggleSection

packages/editor-app/src/components/SettingsWindow.tsx:347–357  ·  view source on GitHub ↗
(sectionId: string)

Source from the content-addressed store, hash-verified

345 };
346
347 const toggleSection = (sectionId: string) => {
348 setExpandedSections((prev) => {
349 const newSet = new Set(prev);
350 if (newSet.has(sectionId)) {
351 newSet.delete(sectionId);
352 } else {
353 newSet.add(sectionId);
354 }
355 return newSet;
356 });
357 };
358
359 const toggleMainCategory = (categoryId: string) => {
360 setExpandedMainCategories((prev) => {

Callers 2

BuildSettingsPanelFunction · 0.85
SettingsWindowFunction · 0.85

Calls 3

hasMethod · 0.65
deleteMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected