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

Function onCommentClick

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

Source from the content-addressed store, hash-verified

708 };
709
710 const onCommentClick = (
711 post: Post,
712 index: number,
713 row: number,
714 column: number,
715 isAd?: boolean,
716 ): void => {
717 logEvent(
718 postLogEvent(LogEvent.CommentsClick, post, {
719 columns: virtualizedNumCards,
720 column,
721 row,
722 index,
723 ...feedLogExtra(feedName, ranking, searchLogExtra),
724 is_ad: isAd,
725 }),
726 );
727 if (!shouldUseListFeedLayout || isReaderEligiblePost(post)) {
728 onPostModalOpen({ index, row, column });
729 }
730 };
731
732 if (isError) {
733 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