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

Function onClose

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

Source from the content-addressed store, hash-verified

952 // Close raises the post over the page first, so the way out looks like
953 // the way in played backwards.
954 const onClose = () => {
955 closedBy.current = CloseReason.Close;
956 rise.current?.();
957 };
958
959 const runMenu = (action: () => void) => () => {
960 setIsMenuOpen(false);

Callers 4

FeedSheetFunction · 0.70
PromotionTourFunction · 0.50
SquadTourFunction · 0.50
SpotlightFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected