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

Function onCommentClick

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

Source from the content-addressed store, hash-verified

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

Callers 2

FeedItemComponentFunction · 0.70
FooterWrapper.tsxFile · 0.50

Calls 4

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

Tested by

no test coverage detected