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

Function onCommentClick

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

Source from the content-addressed store, hash-verified

619 };
620
621 const onCommentClick = (
622 post: Post,
623 index: number,
624 row: number,
625 column: number,
626 isAd?: boolean,
627 ): void => {
628 logEvent(
629 postLogEvent(LogEvent.CommentsClick, post, {
630 columns: virtualizedNumCards,
631 column,
632 row,
633 ...feedLogExtra(feedName, ranking),
634 is_ad: isAd,
635 }),
636 );
637 if (!shouldUseListFeedLayout || isReaderEligiblePost(post)) {
638 onPostModalOpen({ index, row, column });
639 }
640 };
641
642 if (isError) {
643 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