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

Function onCommentClick

packages/shared/src/components/Feed.tsx:688–707  ·  view source on GitHub ↗
(
    post: Post,
    index: number,
    row: number,
    column: number,
    isAd?: boolean,
  )

Source from the content-addressed store, hash-verified

686 };
687
688 const onCommentClick = (
689 post: Post,
690 index: number,
691 row: number,
692 column: number,
693 isAd?: boolean,
694 ): void => {
695 logEvent(
696 postLogEvent(LogEvent.CommentsClick, post, {
697 columns: virtualizedNumCards,
698 column,
699 row,
700 ...feedLogExtra(feedName, ranking),
701 is_ad: isAd,
702 }),
703 );
704 if (!shouldUseListFeedLayout || isReaderEligiblePost(post)) {
705 onPostModalOpen({ index, row, column });
706 }
707 };
708
709 if (isError) {
710 return <FeedErrorScreen error={feedError} />;

Callers 1

FeedItemComponentFunction · 0.70

Calls 4

postLogEventFunction · 0.90
feedLogExtraFunction · 0.90
logEventFunction · 0.85
onPostModalOpenFunction · 0.85

Tested by

no test coverage detected