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

Function onLinkClick

packages/shared/src/components/widgets/PostToc.tsx:34–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 const { logOpts } = useContext(ActiveFeedContext);
33
34 const onLinkClick = async (): Promise<void> => {
35 logEvent(
36 postLogEvent(LogEvent.Click, post, {
37 extra: { origin: 'toc' },
38 ...(logOpts && logOpts),
39 }),
40 );
41 };
42
43 const items = (
44 <>

Callers 7

SquadPostListItemFunction · 0.50
AdGrid.tsxFile · 0.50
getLinkPropsFunction · 0.50
AdList.tsxFile · 0.50
getLinkPropsFunction · 0.50
SignalAdList.tsxFile · 0.50
AdLinkFunction · 0.50

Calls 2

postLogEventFunction · 0.90
logEventFunction · 0.85

Tested by

no test coverage detected