MCPcopy Create free account
hub / github.com/dailydotdev/apps / toggleFlag

Function toggleFlag

packages/shared/src/components/sidebar/Section.tsx:73–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 !!title && (sidebarExpanded || (shouldRenderItems && hasVisibleItems));
72
73 const toggleFlag = () => {
74 const nextIsVisible = !isVisible;
75
76 if (flag) {
77 updateFlag(flag, nextIsVisible);
78 }
79
80 setIsVisible(nextIsVisible);
81 };
82
83 return (
84 <NavSection className={classNames('group/section mt-1', className)}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected