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

Function onToggle

packages/shared/src/components/shell/ReadingDrawer.tsx:940–950  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

938 }
939
940 const onToggle = () => {
941 const { current } = geometry;
942 if (!current) {
943 return;
944 }
945 glide.current?.(
946 document.documentElement.classList.contains('reading-full')
947 ? current.card
948 : current.full,
949 );
950 };
951
952 // Close raises the post over the page first, so the way out looks like
953 // the way in played backwards.

Callers 6

onToggleSwitchFunction · 0.50
SearchFilterCheckboxListFunction · 0.50
UserIntegrationItemFunction · 0.50
toggleFunction · 0.50
useSourceActionsNotifyFunction · 0.50
SourceModeToggleItemFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected