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

Function onCommentClick

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

Source from the content-addressed store, hash-verified

634 };
635
636 const onCommentClick = (
637 post: Post,
638 index: number,
639 row: number,
640 column: number,
641 isAd?: boolean,
642 ): void => {
643 logEvent(
644 postLogEvent(LogEvent.CommentsClick, post, {
645 columns: virtualizedNumCards,
646 column,
647 row,
648 ...feedLogExtra(feedName, ranking),
649 is_ad: isAd,
650 }),
651 );
652 if (!shouldUseListFeedLayout || isReaderEligiblePost(post)) {
653 onPostModalOpen({ index, row, column });
654 }
655 };
656
657 if (isError) {
658 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