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

Function onClick

packages/shared/src/components/comments/MainComment.tsx:134–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 isModalThread && replyCount > 0 && !repliesLocked;
133
134 const onClick = () => {
135 if (!logClick && !props.linkToComment) {
136 return;
137 }
138
139 logEvent({
140 event_name: LogEvent.Click,
141 target_type: TargetType.Comment,
142 target_id: comment.id,
143 extra: JSON.stringify({ origin: props.origin }),
144 });
145 };
146
147 return (
148 <section

Callers

nothing calls this directly

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected