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

Function toggle

packages/shared/src/components/post/focus/CommunitySentiment.tsx:211–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209 : { value: postCount, label: 'discussions' };
210
211 const toggle = () => {
212 setIsExpanded((prev) => !prev);
213 onSeeBreakdown?.();
214 };
215
216 const onKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {
217 if (event.key === 'Enter' || event.key === ' ') {

Callers 1

onKeyDownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected